Part Number Hot Search : 
G478B 09012 MAC16NG P8202 HUR1060 UNR31 C10373 12004
Product Description
Full Text Search
 

To Download ADP5588 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  m o b i l e i / o e x p a n d e r a n d q w e r t y k e y p a d c o n t r o l l e r d a t a s h e e t a d p 5 5 8 8 f e a t u r e s 1 8 - g p i o p o r t e x p a n d e r o r 1 0 8 k e y p a d m a t r i x g p i o s c o n f i g u r a b l e t o g p i s , g p o s , a n d k e y p a d r o w s o r c o l u m n s d u a l l i g h t s e n s o r i n p u t s ( c 8 a n d c 9 ) i 2 c i n t e r f a c e i 2 c r e g i s t e r r e a d a u t o i n c r e m e n t 1 . 8 v t o 3 . 0 v o p e r a t i o n k e y p a d l o c k c a p a b i l i t y o p e n - d r a i n i n t e r r u p t o u t p u t k e y p r e s s a n d k e y r e l e a s e i n t e r r u p t s g p i i n t e r r u p t w i t h l e v e l p r o g r a m m a b i l i t y p r o g r a m m a b l e p u l l - u p s k e y e v e n t c o u n t e r w i t h o v e r f l o w i n t e r r u p t 5 0  s d e b o u n c e o n t h e r e s e t l i n e a n d g p i s 1  a t y p i c a l i d l e c u r r e n t , 5 5  a t y p i c a l p o l l i n g c u r r e n t d r a i n f o r o n e k e y p r e s s s m a l l 4 m m 4 m m l f c s p p a c k a g e a p p l i c a t i o n s k e y p a d a n d i / o e x p a n d e r d e s i g n e d f o r q w e r t y t y p e p h o n e s t h a t r e q u i r e a l a r g e k e y p a d m a t r i x f u n c t i o n a l b l o c k d i a g r a m c 8 c 9 c 8 c 9 1 8 1 7 1 9 2 1 2 3 2 2 2 0 2 4 c o n t r o l r e g i s t e r s c o n t r o l i n t e r f a c e r e f v o l t a g e r e f v o l t a g e r 7 r 6 r 5 r 4 r 3 r 2 r 1 r 0 c 0 c 1 c 2 c 3 c 4 c 5 c 6 c 7 c 9 c 8 g n d v c c s c l s d a r s t i n t 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 2 0 7 6 7 3 - 0 0 1 a d p 5 5 8 8 f i g u r e 1 . g e n e r a l d e s c r i p t i o n t h e a d p 5 5 8 8 i s a n i / o p o r t e x p a n d e r a n d k e y p a d m a t r i x d e s i g n e d f o r q w e r t y t y p e p h o n e s t h a t r e q u i r e a l a r g e k e y p a d m a t r i x a n d e x p a n d e d i / o l i n e s . i / o e x p a n d e r i c s a r e u s e d i n m o b i l e p l a t f o r m s a s a s o l u t i o n t o t h e l i m i t e d n u m b e r o f g p i o s a v a i l a b l e i n t h e m a i n p r o c e s s o r . i n i t s s m a l l 4 m m 4 m m p a c k a g e , t h e a d p 5 5 8 8 c o n t a i n s e n o u g h p o w e r t o h a n d l e a l l k e y s c a n n i n g a n d d e c o d i n g a n d f l a g t h e p r o c e s s o r o f k e y p r e s s e s a n d r e l e a s e s v i a t h e i 2 c ? i n t e r f a c e a n d i n t e r r u p t . i t f r e e s t h e m a i n m i c r o p r o c e s s o r f r o m h a v i n g t o m o n i t o r t h e k e y p a d , t h e r e b y m i n i m i z i n g c u r r e n t d r a i n a n d i n c r e a s i n g p r o c e s s o r b a n d w i d t h . i t i s a l s o e q u i p p e d w i t h a b u f f e r / f i f o a n d k e y e v e n t c o u n t e r t o h a n d l e a n d k e e p t r a c k o f u p t o 1 0 u n p r o c e s s e d k e y o r g p i e v e n t s w i t h o v e r f l o w w r a p a n d i n t e r r u p t c a p a b i l i t y . t h e a d p 5 5 8 8 h a s a k e y l o c k c a p a b i l i t y w i t h a n o p t i o n t o t r i g g e r o r n o t t r i g g e r a n i n t e r r u p t a t k e y p r e s s e s a n d r e l e a s e s . a l l c o m - m u n i c a t i o n t o t h e m a i n p r o c e s s o r i s d o n e u s i n g o n e i n t e r r u p t l i n e a n d t w o i 2 c - c o m p a t i b l e i n t e r f a c e l i n e s . t h e a d p 5 5 8 8 c a n b e c o n f i g u r e d t o h a v e a k e y p a d m a t r i x o f u p t o 8 r o w s 1 0 c o l u m n s ( a m a x i m u m o f 8 0 k e y s ) . w h e n u s e d f o r s m a l l e r k e y p a d m a t r i c e s , u n u s e d r o w a n d c o l u m n p i n s c a n b e r e c o n f i g u r e d t o a c t a s g e n e r a l - p u r p o s e i n p u t s , o u t p u t s , o r l i g h t s e n s o r i n p u t s . r 0 , r 1 , r 2 , r 3 , r 4 , r 5 , r 6 , a n d r 7 d e n o t e t h e r o w p i n s o f t h e m a t r i x , w h i l e c 0 , c 1 , c 2 , c 3 , c 4 , c 5 , c 6 , c 7 , c 8 , a n d c 9 d e n o t e t h e c o l u m n p i n s . a t p o w e r - u p , a l l r o w s a n d c o l u m n s d e f a u l t a s g p i s a n d m u s t b e p r o g r a m m e d t o f u n c t i o n a s p a r t o f t h e k e y p a d m a t r i x , g p o s , o r l i g h t s e n s o r i n p u t s . i n a d d i t i o n t o k e y p a d a n d g p i o f u n c t i o n a l i t i e s , c 8 a n d c 9 c a n a l s o b e c o n f i g u r e d a s l i g h t s e n s o r i n p u t s . w h e n c o n f i g u r e d a s k e y p a d l i n e s , t h e f u n c t i o n o f t h e c 8 a n d c 9 l i n e s i s s t r a i g h t f o r w a r d : t h e c o n t r o l i n t e r f a c e d i s c o n n e c t s t h e s e l i n e s f r o m t h e c o m p a r a t o r i n p u t s , d i s a b l e s t h e l i g h t s e n s o r c o m p a r a t o r , a n d c o n n e c t s t h e m t o t h e k e y p a d c o l u m n s o f t h e k e y p a d m a t r i x . w h e n u s e d a s l i g h t s e n s o r c o m p a r a t o r i n p u t s , t h e c o n t r o l i n t e r f a c e d i s c o n n e c t s t h e s e p i n s f r o m t h e k e y p a d , e n a b l e s t h e c o m p a r a t o r s , a n d c o n n e c t s t h e s e l i n e s t o t h e c o m - p a r a t o r i n p u t s . t w o e x t e r n a l c a p a c i t o r s ( 0 . 1  f ) a r e r e q u i r e d w h e n t h e s e p i n s a r e c o n f i g u r e d a s l i g h t s e n s o r i n p u t s . w h e n u s e d a s g p i o s , t h e s e p i n s a r e r e m o v e d f r o m t h e k e y p a d a n d t h e l i g h t s e n s o r i n t e r f a c e , a n d t h e l i g h t s e n s o r c o m p a r a t o r s a r e d i s a b l e d , a l o n g w i t h t h e l o g i c f o r t h e s e n s o r s . r e v . c i n f o r m a t i o n f u r n i s h e d b y a n a l o g d e v i c e s i s b e l i e v e d t o b e a c c u r a t e a n d r e l i a b l e . h o w e v e r , n o r e s p o n s i b i l i t y i s a s s u m e d b y a n a l o g d e v i c e s f o r i t s u s e , n o r f o r a n y i n f r i n g e m e n t s o f p a t e n t s o r o t h e r r i g h t s o f t h i r d p a r t i e s t h a t m a y r e s u l t f r o m i t s u s e . s p e c i f i c a t i o n s s u b j e c t t o c h a n g e w i t h o u t n o t i c e . n o l i c e n s e i s g r a n t e d b y i m p l i c a t i o n o r o t h e r w i s e u n d e r a n y p a t e n t o r p a t e n t r i g h t s o f a n a l o g d e v i c e s . t r a d e m a r k s a n d r e g i s t e r e d t r a d e m a r k s a r e t h e p r o p e r t y o f t h e i r r e s p e c t i v e o w n e r s . o n e t e c h n o l o g y w a y , p . o . b o x 9 1 0 6 , n o r w o o d , m a 0 2 0 6 2 - 9 1 0 6 , u . s . a . t e l : 7 8 1 . 3 2 9 . 4 7 0 0 w w w . a n a l o g . c o m f a x : 7 8 1 . 4 6 1 . 3 1 1 3 ? 2 0 0 8 ? 2 0 1 2 a n a l o g d e v i c e s , i n c . a l l r i g h t s r e s e r v e d .
a d p 5 5 8 8 d a t a s h e e t r e v . c | p a g e 2 o f 2 8 t a b l e o f c o n t e n t s f e a t u r e s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 a p p l i c a t i o n s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 f u n c t i o n a l b l o c k d i a g r a m . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 g e n e r a l d e s c r i p t i o n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 r e v i s i o n h i s t o r y . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 s p e c i f i c a t i o n s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 d c e l e c t r i c a l c h a r a c t e r i s t i c s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 a b s o l u t e m a x i m u m r a t i n g s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 t h e r m a l r e s i s t a n c e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 e s d c a u t i o n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 p i n c o n f i g u r a t i o n a n d f u n c t i o n d e s c r i p t i o n s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 t h e o r y o f o p e r a t i o n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 k e y p a d o p e r a t i o n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 g e n e r a l - p u r p o s e i n p u t s a n d o u t p u t s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 i 2 c p r o g r a m m i n g a n d d i g i t a l c o n t r o l . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 4 r e g i s t e r s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 5 r e g i s t e r d e s c r i p t i o n s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 6 c o m p a r a t o r r e g i s t e r d e s c r i p t i o n s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1 a p p l i c a t i o n s i n f o r m a t i o n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 4 a p p l i c a t i o n s o v e r v i e w . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 4 k e y p a d c u r r e n t . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 4 b a c k l i g h t c o n t r o l a p p l i c a t i o n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 4 o u t l i n e d i m e n s i o n s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 6 o r d e r i n g g u i d e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 6 r e v i s i o n h i s t o r y 2 / 1 2 ? r e v . b t o r e v . c c h a n g e s t o t a b l e 1 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 c h a n g e s t o t a b l e 2 7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 8 4 / 0 9 ? r e v . a t o r e v . b c h a n g e s t o t i t l e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 c h a n g e s t o o r d e r i n g g u i d e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 6 1 1 / 0 8 ? r e v . s p 0 t o r e v . a
d a t a s h e e t a d p 5 5 8 8 r e v . c | p a g e 3 o f 2 8 s p e c i f i c a t i o n s t a = t j = ? 4 0 c t o + 8 5 c , u n l e s s o t h e r w i s e n o t e d . d c e l e c t r i c a l c h a r a c t e r i s t i c s t a b l e 1 . g e n e r a l d c e l e c t r i c a l c h a r a c t e r i s t i c s p a r a m e t e r s y m b o l c o n d i t i o n s m i n t y p m a x u n i t s u p p l y v o l t a g e v c c i n p u t v o l t a g e r a n g e v c c 1 . 7 3 . 0 v p h o t o s e n s o r v o l t a g e v p h o t o s e n s o r v c c + 0 . 2 s u p p l y c u r r e n t 1 i c c v c c = 1 . 8 v t o 3 . 0 v , t a = ? 4 0 c t o + 8 5 c 1 1 0  a w i t h o n e k e y p r e s s i c c v c c = 1 . 8 v , t a = ? 4 0 c t o + 8 5 c 5 5 9 0  a w i t h o n e k e y p r e s s i c c v c c = 3 . 0 v , t a = ? 4 0 c t o + 8 5 c 1 0 0 2 0 0  a w i t h g p i l o w ( p u l l - u p e n a b l e d ) 2 i c c v c c = 1 . 8 v t o 3 . 0 v , t a = ? 4 0 c t o + 8 5 c 2 0 5 0  a w i t h g p i l o w ( p u l l - u p d i s a b l e d ) i c c v c c = 1 . 8 v t o 3 . 0 v , t a = ? 4 0 c t o + 8 5 c 2 1 0  a w i t h o n e g p o a c t i v e 3 i c c v c c = 1 . 8 v , t a = ? 4 0 c t o + 8 5 c 5 0  a a m b i e n t l i g h t s e n s o r ( c m p _ i n 1 , c m p _ i n 2 ) m a x i m u m s e n s o r r a n g e i s e n s o r v c c = 1 . 8 v t o 3 . 0 v , t a = 2 5 c 0 . 8 5 1 . 0 1 . 1 5 m a s e n s o r s u p p l y c u r r e n t ( o n e c o m p a r a t o r e n a b l e d , 0 m i n i m u m i n p u t c u r r e n t ) 4 i c c v c c = 1 . 8 v t o 3 . 0 v 1 0 0 1 5 0  a s e n s o r c u r r e n t ( o n e c o m p a r a t o r e n a b l e d , m a x i m u m i n p u t c u r r e n t ) 4 i c c v c c = 1 . 8 v t o 3 . 0 v 1 6 0 2 0 0  a s e n s o r c u r r e n t ( b o t h c o m p a r a t o r s e n a b l e d , m i n i m u m i n p u t c u r r e n t ) 4 i c c v c c = 1 . 8 v t o 3 . 0 v 1 3 0 1 8 0  a s e n s o r c u r r e n t ( b o t h c o m p a r a t o r s e n a b l e d , m a x i m u m i n p u t c u r r e n t ) 4 i c c v c c = 1 . 8 v t o 3 . 0 v 2 4 0 4 0 0  a o s c i l l a t o r c u r r e n t o s c i l l a t o r c u r r e n t ( e n a b l e d ) i c c v c c = 1 . 8 v t o 3 . 0 v 4 0  a 1 o p e r a t i n g c u r r e n t m e a s u r e d w i t h i / o s d e f a u l t i n g a s g p i s w i t h a l l p u l l - u p s e n a b l e d a n d a l l i n p u t s o p e n . 2 w i t h o n e g p i l o w . 3 l o a d = 1 0 0 k .  4 p h o t o s e n s o r m a x i m u m v o l t a g e = v c c + 0 . 2 . t a b l e 2 . i / o d c e l e c t r i c a l c h a r a c t e r i s t i c s p a r a m e t e r s y m b o l c o n d i t i o n s m i n t y p m a x u n i t i n p u t l o g i c l e v e l s ( s c l , s d a , r s t , c 0 t o c 9 , r 0 t o r 7 ) 1 l o g i c l o w i n p u t v o l t a g e v i l 1 . 7 v  v i o  3 . 0 v 0 . 2 x v c c v l o g i c h i g h i n p u t v o l t a g e v i h 1 . 7 v  v i o  3 . 0 v 0 . 6 5 x v c c v s c h m i t t t r i g g e r h y s t e r e s i s v h y s t 0 . 1 0 v i n p u t l e a k a g e c u r r e n t v i - l e a k a g e 1 . 7 v  v i o  3 . 0 v ? 1 1 a o u t p u t l o g i c l e v e l s ( c 0 t o c 9 , r 0 t o r 7 ) l o g i c l o w o u t p u t v o l t a g e v o l i s i n k = 1 m a 0 . 4 0 v o u t p u t h i g h v o l t a g e v o h i s o u r c e = 1 m a v c c ? 0 . 3 v v o u t p u t l o g i c l e v e l s ( i n t , s d a ) o u t p u t l o w v o l t a g e v o l i s i n k = 3 m a 1 . 7 v  v c c  3 . 0 v 0 . 4 0 v o u t p u t h i g h v o l t a g e v o h 1 . 7 v  v c c  3 . 0 v 0 . 9 5 v c c v l o g i c h i g h l e a k a g e c u r r e n t v o - l e a k a g e 1 . 7 v  v c c  3 . 0 v 0 . 1 1 a p u l l - u p r e s i s t a n c e f o r g p i o s ( c 0 t o c 9 , r 0 t o r 7 ) 2 r p u l l - u p 1 0 0 k  1 p o w e r - u p d e f a u l t c u r r e n t . a l l i / o s d e f a u l t a s g p i s a n d a r e o p e n ; c 8 a n d c 9 d e f a u l t a s g p i s ; i 2 c i s i d l e . 2 g p i o i n t e r n a l p u l l - u p s a r e d e s i g n e d t o 1 0 0 k  .
a d p 5 5 8 8 d a t a s h e e t r e v . c | p a g e 4 o f 2 8 t a b l e 3 . c o m p a r a t o r i n p u t c a p a c i t o r p a r a m e t e r s y m b o l m i n t y p m a x u n i t c o m p a r a t o r i n p u t c a p a c i t o r v a l u e c c o m p 0 . 1  f t a b l e 4 . c a p a c i t a n c e l o a d i n g 1 p a r a m e t e r s y m b o l m i n t y p m a x u n i t i / o i n p u t c a p a c i t a n c e c i n 1 1 0 p f i / o o u t p u t l o a d i n g c a p a c i t a n c e c o u t 5 0 p f c a p a c i t i v e l o a d f o r e a c h b u s l i n e c b 2 4 0 0 p f 1 g u a r a n t e e d b y d e s i g n . 2 c b = t o t a l c a p a c i t a n c e o f o n e b u s l i n e i n p i c o f a r a d s . t a b l e 5 . a c c h a r a c t e r i s t i c s 1 p a r a m e t e r s y m b o l m i n t y p m a x u n i t d e l a y f r o m r e s e t d e a s s e r t i o n t o i 2 c a c c e s s r s t d 6 0  s k e y p a d u n l o c k t i m e r t k u t 7 s e c k e y p a d i n t e r r u p t m a s k t i m e r t k i m t 3 1 s e c d e b o u n c e t d 5 0  s f i l t e r t i m e t t t r 0 . 0 7 0 1 2 s e c 1 g u a r a n t e e d b y d e s i g n . t a b l e 6 . i 2 c a c e l e c t r i c a l c h a r a c t e r i s t i c s 1 p a r a m e t e r s y m b o l m i n t y p m a x u n i t s c l c l o c k f r e q u e n c y f s c l 4 0 0 k h z s c l h i g h t i m e t h i g h 0 . 6  s s c l l o w t i m e t l o w 1 . 3  s d a t a s e t u p t i m e t s u , d a t 1 0 0 n s d a t a h o l d t i m e t h d , d a t 0 0 . 9  s s e t u p t i m e f o r r e p e a t e d s t a r t t s u , s t a 0 . 6  s h o l d t i m e f o r s t a r t / r e p e a t e d s t a r t t h d , s t a 0 . 6  s b u s f r e e t i m e f o r s t o p a n d s t a r t t b u f 1 . 3  s s e t u p t i m e f o r s t o p c o n d i t i o n t s u , s t o 0 . 6  s r i s e t i m e f o r s c l a n d s d a 2 t r 2 0 + 0 . 1 c b 3 0 0 n s f a l l t i m e f o r s c l a n d s d a 2 t f 2 0 + 0 . 1 c b 3 0 0 n s p u l s e w i d t h o f s u p p r e s s e d s p i k e t s p 0 5 0  s 1 g u a r a n t e e d b y d e s i g n . 2 t r a n d t f a r e m e a s u r e d b e t w e e n 0 . 3 v c c a n d 0 . 7 v c c . s d a s c l s s = s t a r t c o n d i t i o n s r = r e p e a t e d s t a r t c o n d i t i o n p = s t o p c o n d i t i o n s r p s t l o w t r t h d , d a t t h i g h t s u , d a t t f t f t s u , s t a t h d , s t a t s p t s u , s t o t b u f t r 0 7 6 7 3 - 0 0 2 f i g u r e 2 . i 2 c i n t e r f a c e t i m i n g d i a g r a m
d a t a s h e e t a d p 5 5 8 8 r e v . c | p a g e 5 o f 2 8 a b s o l u t e m a x i m u m r a t i n g s t a b l e 7 . p a r a m e t e r r a t i n g v c c  3 v t o + 4 . 0 v r 0 t o r 7 , c 0 t o c 9  3 v t o v c c + 0 . 3 v s c l  3 v t o v c c + 0 . 3 v s d a  3 v t o v c c + 0 . 3 v r s t  3 v t o v c c + 0 . 3 v i n t  3 v t o v c c + 0 . 3 v g n d  0 . 3 v t o + 0 . 3 v o p e r a t i n g a m b i e n t t e m p e r a t u r e r a n g e  4 0 c t o + 8 5 c o p e r a t i n g j u n c t i o n t e m p e r a t u r e r a n g e  4 0 c t o + 1 2 5 c s t o r a g e t e m p e r a t u r e r a n g e  6 5 c t o + 1 5 0 c e s d m a c h i n e m o d e l 2 0 0 v e s d h u m a n b o d y m o d e l 2 0 0 0 v e s d c h a r g e d d e v i c e m o d e l 1 0 0 0 v s o l d e r i n g c o n d i t i o n j e d e c j - s t d - 0 2 0 s t r e s s e s a b o v e t h o s e l i s t e d u n d e r a b s o l u t e m a x i m u m r a t i n g s m a y c a u s e p e r m a n e n t d a m a g e t o t h e d e v i c e . t h i s i s a s t r e s s r a t i n g o n l y ; f u n c t i o n a l o p e r a t i o n o f t h e d e v i c e a t t h e s e o r a n y o t h e r c o n d i t i o n s a b o v e t h o s e i n d i c a t e d i n t h e o p e r a t i o n a l s e c t i o n o f t h i s s p e c i f i c a t i o n i s n o t i m p l i e d . e x p o s u r e t o a b s o l u t e m a x i m u m r a t i n g c o n d i t i o n s f o r e x t e n d e d p e r i o d s m a y a f f e c t d e v i c e r e l i a b i l i t y . t h e r m a l r e s i s t a n c e  j a i s s p e c i f i e d f o r t h e w o r s t - c a s e c o n d i t i o n s , t h a t i s , a d e v i c e s o l d e r e d i n a c i r c u i t b o a r d f o r s u r f a c e - m o u n t p a c k a g e s . t a b l e 8 . t h e r m a l r e s i s t a n c e p a c k a g e t y p e  j a  j c u n i t 2 4 - l e a d l f c s p _ v q 5 7 . 8 9 . 4 c / w m a x i m u m p o w e r 6 0 0 m w e s d c a u t i o n
a d p 5 5 8 8 d a t a s h e e t r e v . c | p a g e 6 o f 2 8 p i n c o n f i g u r a t i o n a n d f u n c t i o n d e s c r i p t i o n s p i n 1 i n d i c a t o r n o t e s 1 . n c = n o c o n n e c t . 2 . e x p o s e d p a d m u s t b e c o n n e c t e d t o g r o u n d . 1 r 7 2 r 6 3 r 5 4 r 4 5 r 3 6 r 2 1 5 c 6 1 6 c 7 1 7 c m p _ i n 1 / c 8 1 8 c m p _ i n 2 / c 9 1 4 c 5 1 3 c 4 7 r 1 8 r 0 9 c 0 1 1 c 2 1 2 c 3 1 0 c 1 2 1 v c c 2 2 s d a 2 3 s c l 2 4 i n t 2 0 r s t 1 9 g n d t o p v i e w ( n o t t o s c a l e ) a d p 5 5 8 8 0 7 6 7 3 - 0 0 3 f i g u r e 3 . p i n c o n f i g u r a t i o n t a b l e 9 . p i n f u n c t i o n d e s c r i p t i o n s p i n n o . m n e m o n i c d e s c r i p t i o n 1 r 7 g p i o , r o w 7 i n t h e k e y p a d m a t r i x . 2 r 6 g p i o , r o w 6 i n t h e k e y p a d m a t r i x . 3 r 5 g p i o , r o w 5 i n t h e k e y p a d m a t r i x . 4 r 4 g p i o , r o w 4 i n t h e k e y p a d m a t r i x . 5 r 3 g p i o , r o w 3 i n t h e k e y p a d m a t r i x . 6 r 2 g p i o , r o w 2 i n t h e k e y p a d m a t r i x . 7 r 1 g p i o , r o w 1 i n t h e k e y p a d m a t r i x . 8 r 0 g p i o , r o w 0 i n t h e k e y p a d m a t r i x . 9 c 0 g p i o , c o l u m n 0 i n t h e k e y p a d m a t r i x . 1 0 c 1 g p i o , c o l u m n 1 i n t h e k e y p a d m a t r i x . 1 1 c 2 g p i o , c o l u m n 2 i n t h e k e y p a d m a t r i x . 1 2 c 3 g p i o , c o l u m n 3 i n t h e k e y p a d m a t r i x . 1 3 c 4 g p i o , c o l u m n 4 i n t h e k e y p a d m a t r i x . 1 4 c 5 g p i o , c o l u m n 5 i n t h e k e y p a d m a t r i x . 1 5 c 6 g p i o , c o l u m n 6 i n t h e k e y p a d m a t r i x . 1 6 c 7 g p i o , c o l u m n 7 i n t h e k e y p a d m a t r i x . 1 7 c m p _ i n 1 / c 8 g p i o , c o l u m n 8 i n t h e k e y p a d m a t r i x ; c o m p a r a t o r i n p u t f o r p h o t o s e n s o r 1 . 1 8 c m p _ i n 2 / c 9 g p i o , c o l u m n 9 i n t h e k e y p a d m a t r i x ; c o m p a r a t o r i n p u t f o r p h o t o s e n s o r 2 . 1 9 g n d g r o u n d . 2 0 r s t h a r d w a r e r e s e t ( a c t i v e l o w ) . t h i s b i t r e s e t s t h e d e v i c e t o t h e p o w e r d e f a u l t c o n d i t i o n s . t h e r e s e t p i n m u s t b e d r i v e n f o r a m i n i m u m o f 5 0  s t o b e v a l i d a n d t o p r e v e n t f a l s i n g d u e t o e s d g l i t c h e s o r n o i s e i n t h e s y s t e m . i f n o t u s e d , r s t m u s t b e t i e d h i g h w i t h a p u l l - u p . 2 1 v c c v c c = 1 . 7 v t o 3 . 3 v . 2 2 s d a i 2 c s e r i a l d a t a ( o p e n d r a i n r e q u i r e s e x t e r n a l p u l l - u p ) . 2 3 s c l i 2 c c l o c k . 2 4 i n t p r o c e s s o r i n t e r r u p t , a c t i v e l o w , o p e n d r a i n . t h i s p i n c a n b e p u l l e d u p t o 2 . 7 v o r 1 . 8 v f o r s e l e c t i o n f l e x i b i l i t y i n t h e p r o c e s s o r g p i o s u p p l y g r o u p . e p e p a d e x p o s e d p a d . t h e e x p o s e d p a d m u s t b e c o n n e c t e d t o g r o u n d .
d a t a s h e e t a d p 5 5 8 8 r e v . c | p a g e 7 o f 2 8 t h e o r y o f o p e r a t i o n c o n t r o l r e g i s t e r s c o n t r o l i n t e r f a c e r e f v o l t a g e c 9 c 9 c 8 c 8 r 7 r 6 r 5 r 4 r 3 r 2 r 1 r 0 c 0 c 1 c 2 c 3 c 4 c 5 c 6 c 7 c 9 c 8 a 0 a 1 a 2 a 3 a 4 a 5 a 6 a 7 b 0 b 1 b 2 b 3 b 4 b 5 b 6 b 7 c 0 c 1 c 2 c 3 c 4 c 5 c 6 c 7 d 0 d 1 d 2 d 3 d 4 d 5 d 6 d 7 e 0 e 1 e 2 e 3 e 4 e 5 e 6 e 7 f 0 f 1 f 2 f 3 f 4 f 5 f 6 f 7 g 0 g 1 g 2 g 3 g 4 g 5 g 6 g 7 h 0 h 1 h 2 h 3 h 4 h 5 h 6 h 7 i 0 i 1 i 2 i 3 i 4 i 5 i 6 i 7 j 0 j 1 j 2 j 3 j 4 j 5 j 6 j 7 s c l s d a r s t i n t v c c g n d v c c s c l s d a 1 9 2 1 2 3 2 2 1 8 1 7 2 0 2 4 1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 r e f v o l t a g e 0 . 1 f 0 . 1 f v c c 0 7 6 7 3 - 0 0 9 a d p 5 5 8 8 r s t i n t f i g u r e 4 . t y p i c a l o p e r a t i n g c i r c u i t t h e a d p 5 5 8 8 i s a g p i o e x p a n d e r t h a t c a n b e c o n f i g u r e d e i t h e r a s a n 1 8 - i / o p o r t e x p a n d e r o r a s a 1 0 c o l u m n 8 r o w k e y p a d m a t r i x ( 8 0 k e y s m a x i m u m ) . i t i s i d e a l f o r c e l l u l a r p h o n e d e s i g n s a n d o t h e r p o r t a b l e d e v i c e s t h a t r e q u i r e a l a r g e e x t e n d e d k e y p a d a n d / o r e x p a n d e d i / o s ( s e e t h e a p p l i c a t i o n s i n f o r m a t i o n s e c t i o n f o r v a r i o u s c o n f i g u r a t i o n s ) . w h e n s m a l l e r s i z e k e y p a d s a r e r e q u i r e d , u n u s e d g p i o s i n t h e k e y p a d m a t r i x c a n b e u s e d a s i / o s ( g p o s a n d g p i s ) . t w o o f t h e c o l u m n s ( c 8 a n d c 9 ) c a n a l s o b e c o n f i g u r e d a s c o m p a r a t o r i n p u t s f o r s i n g l e o r d u a l l i g h t s e n s o r s . a l l g p i o s ( r o w s a n d c o l u m n s ) d e f a u l t a s g p i s a t p o w e r - u p w i t h p u l l - u p s a n d d e b o u n c e e n a b l e d . k e y p a d o p e r a t i o n a n y n u m b e r o f r o w s a n d c o l u m n s , u p t o 1 0 c o l u m n s 8 r o w s , c a n b e c o n f i g u r e d t o b e p a r t o f t h e k e y p a d m a t r i x . t h e r o w s a n d c o l u m n s t h a t m a k e u p t h e k e y p a d m a t r i x m u s t b e c o n - f i g u r e d b y s e t t i n g t h e c o r r e s p o n d i n g b i t s i n r e g i s t e r 0 x 1 d t h r o u g h r e g i s t e r 0 x 1 f . k e y s o n t h e k e y p a d m a t r i x a p p e a r o n t h e k e y e v e n t t a b l e w i t h a d e c i m a l v a l u e o f 1 ( 0 x 0 1 h e x i d e c i m a l o r 0 0 0 0 0 0 1 b i n a r y ) a n d r u n t h r o u g h 8 0 d e c i m a l s ( 0 x 5 0 h e x i - d e c i m a l o r 1 0 1 0 0 0 0 b i n a r y ) . s e e t a b l e 1 0 f o r k e y e v e n t n u m b e r a s s i g n m e n t s . t h e k e y p a d , i n i d l e m o d e , i s c o n f i g u r e d w i t h c o l u m n s b e i n g d r i v e n l o w a n d r o w s a s i n p u t s h i g h w i t h p u l l - u p s . t a b l e 1 0 . k e y e v e n t n u m b e r a s s i g n m e n t t a b l e r o w c 0 c 1 c 2 c 3 c 4 c 5 c 6 c 7 c 8 c 9 r 0 1 2 4 4 5 6 7 8 9 1 0 r 1 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 r 2 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 3 0 r 3 3 1 3 2 3 3 3 4 3 5 3 6 3 7 3 8 3 9 4 0 r 4 4 1 4 2 4 3 4 4 4 5 4 6 4 7 4 8 4 9 5 0 r 5 5 1 5 2 5 3 5 4 5 5 5 6 5 7 5 8 5 9 6 0 r 6 6 1 6 2 6 3 6 4 6 5 6 6 6 7 6 8 6 9 7 0 r 7 7 1 7 2 7 3 7 4 7 5 7 6 7 7 7 8 7 9 8 0 w h e n o n e k e y p r e s s o r m u l t i p l e k e y p r e s s e s ( s h o r t b e t w e e n c o u m n a n d r o w ) o c c u r , t h e i n t e r n a l s t a t e m a c h i n e c h e c k s t h e r o w p i n s t o d e t e r m i n e w h i c h o n e i s d r i v e n l o w a n d t h e n t r i g g e r s a n i n t e r r u p t . t h e s t a t e m a c h i n e t h e n s t a r t s a k e y s c a n c y c l e t o d e t e r m i n e w h i c h k e y s a r e p r e s s e d . a f t e r a k e y h a s b e e n p r e s s e d f o r 2 5 m s , t h e s t a t e m a c h i n e s e t s t h e a p p r o p r i a t e k e y ( s ) i n t h e k e y e v e n t s t a t u s r e g i s t e r w i t h t h e k e y - p r e s s e d b i t s s e t ( t h e m s b i n t h e k e y e v e n t r e g i s t e r ) i n t h e o r d e r d e t e c t e d . i f t h e k e _ i e n f i e l d i n r e g i s t e r 0 x 0 1 i s s e t , t h e s t a t e m a c h i n e t h e n s e t s t h e k e _ i n t f i e l d i n r e g i s t e r 0 x 0 1 a n d g e n e r a t e s a n i n t e r r u p t t o t h e h o s t p r o c e s s o r .
a d p 5 5 8 8 d a t a s h e e t r e v . c | p a g e 8 o f 2 8 t o p r e v e n t g l i t c h e s o r n a r r o w p r e s s t i m e s r e g i s t e r i n g a s v a l i d k e y p r e s s e s , t h e k e y s c a n n e r r e q u i r e s t h e k e y t o b e p r e s s e d f o r t w o s c a n c y c l e s . t h e k e y s c a n n e r h a s a s a m p l i n g p e r i o d o f 2 5 m s , s o t h e k e y m u s t b e p r e s s e d a n d h e l d f o r a t l e a s t 2 5 m s t o r e g i s t e r a s p r e s s e d . i f t h e k e y i s c o n t i n u o u s l y p r e s s e d , t h e k e y s c a n n e r c o n t i n u e s t o s a m p l e e v e r y 2 5 m s . i f a k e y t h a t w a s p r e s s e d i s r e l e a s e d f o r 2 5 m s o r g r e a t e r , t h e s t a t e m a c h i n e s e t s t h e a p p r o - p r i a t e k e y s i n t h e k e y e v e n t s t a t u s r e g i s t e r w i t h t h e k e y p r e s s e d b i t s c l e a r e d i n t h e o r d e r d e t e c t e d . b e c a u s e t h e r e l e a s e o f a k e y i s n o t n e c e s s a r i l y i n s y n c w i t h t h e k e y s c a n s a m p l i n g p e r i o d , i t m a y t a k e b e t w e e n 2 5 m s a n d 5 0 m s f o r a k e y t o r e g i s t e r a s r e l e a s e d . a f t e r t h e k e y i s r e g i s t e r e d a s r e l e a s e d , t h e k e y s c a n n e r g o e s b a c k t o i d l e m o d e . f i g u r e 5 s h o w s t h e r o w a n d c o l u m n p i n s c o n n e c t e d t o a t y p i c a l 1 0 8 , 8 0 - s w i t c h k e y p a d m a t r i x . k e y p a d s c a n a n d d e c o d e d 0 _ p u l l j 7 i 7 h 7 g 7 f 7 e 7 d 7 c 7 b 7 a 7 j 6 i 6 h 6 g 6 f 6 e 6 d 6 c 6 b 6 a 6 j 5 i 5 h 5 g 5 f 5 e 5 d 5 c 5 b 5 a 5 j 4 i 4 h 4 g 4 f 4 e 4 d 4 c 4 b 4 a 4 j 3 i 3 h 3 g 3 f 3 e 3 d 3 c 3 b 3 a 3 j 2 i 2 h 2 g 2 f 2 e 2 d 2 c 2 b 2 a 2 j 1 i 1 h 1 g 1 f 1 e 1 d 1 c 1 b 1 a 1 j 0 i 0 h 0 g 0 f 0 e 0 d 0 c 0 b 0 a 0 r 7 r 6 r 5 r 4 r 3 r 2 r 1 r 0 c 0 c 1 c 2 c 3 c 4 c 5 c 6 c 7 c 9 c 8 1 0 8 k e y p a d m a t r i x v c c d 1 _ p u l l d 2 _ p u l l d 3 _ p u l l d 4 _ p u l l d 5 _ p u l l d 6 _ p u l l d 7 _ p u l l 0 7 6 7 3 - 0 1 0 f i g u r e 5 . k e y p a d d e c o d e c o n f i g u r a t i o n k e y e v e n t t r a c k i n g t h e 1 0 - k e y e v e n t r e g i s t e r s a r e s e t t o a c t a s a f i f o , m e a n i n g t h a t r e a d i n g a n y o f t h e 1 0 - k e y e v e n t r e g i s t e r s y i e l d s t h e k e y e v e n t s i n t h e o r d e r t h e y w e r e p r e s s e d a n d r e l e a s e d . t r a c k i n g o f k e y e v e n t s i s d o n e w i t h t h e h e l p o f t h e k e y e v e n t c o u n t e r ( t h e k e c f i e l d i n r e g i s t e r 0 x 0 3 ) a n d t h e f i f o / k e y e v e n t r e g i s t e r s ( r e g i s t e r 0 x 0 4 t h r o u g h r e g i s t e r 0 x 0 d ) . t h e k e c c o u n t i n c r e a s e s a s k e y s a r e p r e s s e d a n d r e l e a s e d ; u p t o 1 0 e v e n t s c a n b e l o g g e d i n t h e c o u n t e r . t h e f i f o / k e y e v e n t r e g i s t e r s , o n t h e o t h e r h a n d , d i s p l a y t h e k e y e v e n t s a n d t h e i r s t a t u s ( p r e s s e d o r r e l e a s e d ) a s t h e y a r e r e a d o u t o f t h e f i f o . t h e f i f o r e g i s t e r s a r e m a d e o f e i g h t b i t s , w i t h t h e m s b d e d i c a t e d a s t h e s t a t u s b i t ( 1 i n d i c a t e s a p r e s s a n d 0 i n d i c a t e s a r e l e a s e ) ; t h e r e m a i n i n g s e v e n b i t s a r e u s e d t o d i s p l a y b i n a r y r e p r e s e n t a t i o n o f t h e k e y s t h a t a r e p r e s s e d o r r e l e a s e d . t h e f i r s t r e a d o f a n y o f t h e f i f o r e g i s t e r s d i s p l a y s t h e f i r s t e v e n t t h a t h a p p e n e d a n d i t s s t a t u s . s u b s e q u e n t r e a d s o f t h e s a m e r e g i s t e r r e p l a c e t h e r e g i s t e r d a t a w i t h t h e n e x t e v e n t t h a t h a p p e n s . i f t r a c k i n g o f a l l t h e e v e n t s i s i m p o r t a n t , i t i s b e s t t o u s e d a s i n g l e r e g i s t e r p e r e v e n t . a f t e r a l l t h e e v e n t s i n t h e f i f o a r e r e a d , r e a d i n g o f a n y o f t h e e v e n t r e g i s t e r s y i e l d s a z e r o v a l u e . t a b l e 1 1 a n d t a b l e 1 2 s h o w t h e e v e n t s e q u e n c e s a s t h e y a r e l o g g e d i n a n d r e a d f r o m t h e f i f o . t h e 1 0 f i f o r e g i s t e r s a r e l a b e l e d a t h r o u g h j , a n d k e y s a r e l a b e l e d a 0 t h r o u g h j 7 . t a b l e 1 1 . e x a m p l e o f e v e n t s e q u e n c e k e y p r e s s e d / r e l e a s e d s t a t u s k e y e v e n t c o u n t e r a 0 p r e s s e d 1 b 1 p r e s s e d 2 a 0 r e l e a s e d 3 c 2 p r e s s e d 4 b 1 r e l e a s e d 5 d 3 p r e s s e d 6 c 2 r e l e a s e d 7 e 4 p r e s s e d 8 e 4 r e l e a s e d 9 d 3 r e l e a s e d 1 0 t a b l e 1 2 . i n t e r p r e t a t i o n o f f i f o e v e n t r e a d i n g k e y e v e n t c o u n t e r k e y e v e n t r e g i s t e r r e a d k e y e v e n t r e g - i s t e r c o n t e n t ( b i n a r y ) 1 k e y e v e n t r e g i s t e r i n t e r p r e t a t i o n 1 0 n / a n / a n / a 9 d 1 0 0 0 0 0 0 1 k e y a 0 p r e s s e d 8 e 1 0 0 0 1 1 0 0 k e y b 1 p r e s s e d 7 c 0 0 0 0 0 0 0 1 k e y a 0 r e l e a s e d 6 f 1 0 0 1 0 1 1 1 k e y c 2 p r e s s e d 5 g 0 0 0 0 1 1 0 0 k e y b 1 r e l e a s e d 4 a 1 0 1 0 0 0 1 0 k e y d 3 p r e s s e d 3 b 0 0 0 1 0 1 1 1 k e y c 2 r e l e a s e d 2 h 1 0 1 0 1 1 0 1 k e y e 4 p r e s s e d 1 j 0 0 1 0 1 1 0 1 k e y e 4 r e l e a s e d 0 i 0 0 1 0 0 0 1 0 k e y d 3 r e l e a s e d 1 t h e f i r s t n u m b e r i n d i c a t e s a k e y p r e s s o r k e y r e l e a s e i n b i t 7 o f t h e k e y e v e n t r e g i s t e r : 1 = k e y p r e s s ; 0 = k e y r e l e a s e . k e y e v e n t o v e r f l o w t h e a d p 5 5 8 8 i s e q u i p p e d w i t h a n o v e r f l o w f e a t u r e t o h a n d l e k e y e v e n t s b e y o n d t h e f i f o c a p a c i t y . w h e n a l l e v e n t s a r e f i l l e d , a n y a d d i t i o n a l e v e n t s s e t t h e o v r _ f l o w _ i n t b i t i n r e g i s t e r 0 x 0 2 ; i f t h e o v r _ f l o w _ i e n b i t i n r e g i s t e r 0 x 0 1 i s s e t , t h e h o s t p r o c e s s o r i s a l s o i n t e r r u p t e d w h e n o v e r f l o w o c c u r s . w h e n t h e f i f o i s n o t f u l l , n e w e v e n t s a r e a d d e d a s t h e l a s t e v e n t s . t h e o v r _ f l o w _ m b i t i n r e g i s t e r 0 x 0 1 s e t s t h e m o d e o f o p e r a t i o n d u r i n g o v e r f l o w s . c l e a r i n g t h e o v r _ f l o w _ m b i t c a u s e s n e w i n c o m i n g e v e n t s t o b e d i s c a r d e d , a n d s e t t i n g t h i s b i t r o l l s o v e r a n d o v e r w r i t e s o l d d a t a w i t h n e w d a t a s t a r t i n g a t t h e f i r s t e v e n t .
d a t a s h e e t a d p 5 5 8 8 r e v . c | p a g e 9 o f 2 8 a u t o i n c r e m e n t t h e a d p 5 5 8 8 f e a t u r e s a u t o m a t i c i n c r e m e n t d u r i n g i 2 c r e a d a c c e s s . t h i s a l l o w s t h e u s e r t o i n c r e m e n t t h e a d d r e s s p o i n t e r w i t h o u t h a v i n g t o s e n d a r e a d c o m m a n d f o r s u b s e q u e n t a d d r e s s e s . t h i s m i n i m i z e s p r o c e s s o r i n t e r v e n t i o n a n d , t h e r e f o r e , s a v e s p r o c e s s o r b a n d w i d t h a n d c u r r e n t d r a i n . b i t 7 o f r e g i s t e r 0 x 0 1 m u s t b e s e t t o i n i t i a t e a u t o i n c r e m e n t ( s e e f i g u r e 1 6 f o r t h e f u l l w r i t e a n d r e a d s e q u e n c e ) . k e y e v e n t i n t e r r u p t o n a k e y e v e n t ( k e ) i n t e r r u p t , t h e p r o c e s s o r r e a d s t h e i n t e r r u p t r e g i s t e r t o d e t e r m i n e t h e c a u s e o f t h e i n t e r r u p t . i f t h e k e _ i n t b i t i n r e g i s t e r 0 x 0 2 i s t h e c a u s e o f t h e i n t e r r u p t , t h e s t a t e m a c h i n e s e t s t h e k e _ i n t b i t a n d r e a d s t h e k e y e v e n t c o u n t f r o m t h e k e c [ 3 : 0 ] f i e l d i n r e g i s t e r 0 x 0 3 t o d e t e r m i n e t h e n u m b e r o f e v e n t s . i t t h e n r e a d s t h e i n t _ s t a t r e g i s t e r ( r e g i s t e r 0 x 0 2 ) t o m a k e s u r e t h a t n o n e w e v e n t s h a v e c o m e i n . a f t e r a l l t h e e v e n t s a r e r e a d , t h e k e c f i e l d i s d e c r e m e n t e d t o z e r o ( k e c = 0 ) a n d t h e k e _ i n t b i t c a n b e c l e a r e d b y w r i t i n g a 1 t o i t . b o t h k e y p r e s s e s a n d k e y r e l e a s e s a r e c a p a b l e o f g e n e r a t i n g k e y e v e n t i n t e r r u p t s . t h e k e _ i n t b i t c a n n o t b e c l e a r e d , a n d t h e i n t p i n c a n n o t b e d e a s s e r t e d , u n t i l t h e f i f o i s c l e a r e d o f a l l e v e n t s . k p _ m o d e k e c r e g . 0 x 1 d t h r o u g h 0 x 1 f r e g . 0 x 0 3 r e a d k e ( s ) t o c l e a r i n t d r i v e k e _ i n t r e g . 0 x 0 2 w r i t e 1 t o c l e a r k e _ i e n r e g . 0 x 0 1 0 7 6 7 3 - 0 1 1 a n d f i g u r e 6 . k e y e v e n t i n t e r r u p t g e n e r a t i o n k e y p a d l o c k / u n l o c k f e a t u r e t h e a d p 5 5 8 8 h a s a l o c k i n g f e a t u r e t h a t a l l o w s t h e u s e r t o l o c k t h e k e y p a d o r g p i s ( c o n f i g u r e d t o b e p a r t o f t h e e v e n t t a b l e ) . o n c e e n a b l e d , t h e k e y p a d l o c k c a n p r e v e n t g e n e r a t i o n o f k e y e v e n t i n t e r r u p t s a n d k e y e v e n t s t o b e r e c o r d e d i n t h e k e y e v e n t t a b l e . t h i s f e a t u r e c o m p r i s e s t h e u n l o c k k e y 1 a n d u n l o c k k e y 2 r e g i s t e r s ( r e g i s t e r 0 x 0 f a n d r e g i s t e r 0 x 1 0 ) , t h e k e y p a d l o c k i n t e r r u p t m a s k , t h e k e y p a d u n l o c k t i m e r s ( r e g i s t e r 0 x 0 e ) , a n d t h e l c k 1 a n d l c k 2 b i t s , a n d t h e k e y l o c k e n a b l e b i t ( r e g i s t e r 0 x 0 3 ) . t h e u n l o c k k e y s c a n b e p r o g r a m m e d w i t h a n y v a l u e o f t h e k e y s i n t h e k e y p a d m a t r i x o r a n y g p i v a l u e s t h a t a r e p a r t o f t h e k e y e v e n t t a b l e . w h e n t h e k e y p a d l o c k i n t e r r u p t m a s k t i m e r i s e n a b l e d , t h e u s e r m u s t p r e s s t w o s p e c i f i c k e y s b e f o r e a k e y l o c k i n t e r r u p t i s g e n e r a t e d o r k e y p a d e v e n t s a r e r e c o r d e d . a f t e r t h e k e y p a d i s l o c k e d ( s e t b i t 6 , r e g i s t e r 0 x 0 3 t o e n a b l e t h e l o c k ) , t h e f i r s t t i m e t h a t t h e u s e r p r e s s e s a n y k e y , a k e y e v e n t i n t e r r u p t i s g e n e r a t e d . n o a d d i t i o n a l i n t e r r u p t i s g e n e r a t e d u n l e s s b o t h u n l o c k k e y s e q u e n c e s a r e c o r r e c t ; t h e n a k e y l o c k i n t e r r u p t i s g e n e r a t e d . i f t h e c o r r e c t u n l o c k k e y s a r e n o t p r e s s e d b e f o r e t h e m a s k t i m e r e x p i r e s , t h e s t a t e m a c h i n e s t a r t s o v e r . t h e f i r s t k e y e v e n t i n t e r r u p t i s g e n e r a t e d t o a l l o w t h e s o f t w a r e t o s e e t h a t t h e u s e r h a s p r e s s e d a k e y s o t h a t t h e h o s t c a n t u r n o n t h e l c d a n d d i s p l a y t h e u n l o c k m e s s a g e . t h e h o s t t h e n r e a d s t h e l o c k s t a t u s r e g i s t e r t o s e e i f t h e k e y p a d i s u n l o c k e d . a f t e r t h e f i r s t k e y e v e n t i n t e r r u p t , t h e s t a t e m a c h i n e d o e s n o t i n t e r r u p t t h e p r o c e s s o r a g a i n u n l e s s t h e c o r r e c t s e q u e n c e i s k e y e d . t h e s t a t e m a c h i n e r e s e t s i f t h e c o r r e c t s e q u e n c e s a r e n o t k e y e d b e f o r e t h e k e y p a d l o c k i n t e r r u p t m a s k t i m e r e x p i r e s . t h e s t a t e o f t h e k e y p a d l o c k i n t e r r u p t m a s k b i t ( r e g i s t e r 0 x 0 1 , b i t 2 ) i n t h e c o n f i g u r a t i o n r e g i s t e r d e t e r m i n e s w h e t h e r t h e i n t e r r u p t p i n i s a s s e r t e d w h e n t h e k e y l o c k i n t e r r u p t s t a t u s b i t ( r e g i s t e r 0 x 0 2 , b i t 2 ) i s s e t . s e t t i n g t h e k e y l o c k i n t e r r u p t m a s k b i t c a u s e s t h e i n t p i n t o b e a s s e r t e d w h e n t h e k e y l o c k i n t e r r u p t s t a t u s b i t i s s e t i n r e g i s t e r 0 x 0 2 ; c l e a r i n g t h a t b i t m a s k s t h e i n t e r r u p t , c a u s i n g t h e i n t e r r u p t p i n n o t t o r e s p o n d t o t h e k e y l o c k i n t e r r u p t s t a t u s b i t . t h e m a s k i n t e r r u p t t i m e r s h o u l d b e s e t f o r t h e t i m e t h a t i t t a k e s f o r t h e l c d t o d i m o r t u r n o f f s o t h a t , i f a k e y i s p r e s s e d , t h e b a c k l i g h t i s s e t t o b r i g h t m o d e a g a i n o r r e s e t t o t u r n o n t h e l c d . w h e n t h e u n l o c k m a s k i n t e r r u p t t i m e r e q u a l s 0 , o n l y t h e c o r r e c t u n l o c k s e q u e n c e c a n g e n e r a t e a n i n t e r r u p t . d i s a b l i n g t h e u n l o c k m a s k i n t e r r u p t t i m e r a l l o w s t h e p r o c e s s o r t o r e m a i n u n d i s t u r b e d f o r s i t u a t i o n s i n w h i c h t h e u s e r h a s t h e p h o n e i n a p o c k e t o r p u r s e a n d t h e k e y s a r e c o n s t a n t l y p r e s s e d . t h e f l o w c h a r t i n f i g u r e 6 s h o w s t h e i n t e r a c t i o n o f t h e i n t e r r u p t m a s k t i m e r a n d i n t e r r u p t g e n e r a t i o n . g e n e r a l - p u r p o s e i n p u t s a n d o u t p u t s t h e a d p 5 5 8 8 s u p p o r t s u p t o 1 8 p r o g r a m m a b l e g p i o s t h a t c a n b e c o n f i g u r e d t o a d d r e s s a v a r i e t y o f u s e s . f i g u r e 7 s h o w s t h e m a k e u p o f a t y p i c a l g p i o b l o c k w h e r e g p i o x r e p r e s e n t s a n y o f t h e 1 8 i / o l i n e s . d e b o u n c e g p i o x d x _ d i r d x _ o u t d x _ i n d x _ i n _ d b n c d x _ p u l l v c c v c c 0 7 6 7 3 - 0 1 2 f i g u r e 7 . t y p i c a l g p i o b l o c k g e n e r a l p u r p o s e i n p u t s ( g p i ) t h e a d p 5 5 8 8 a l l o w s t h e u s e r t o c o n f i g u r e a l l o r s o m e o f i t s g p i o s i n t o g p i s ( g e n e r a l - p u r p o s e i n p u t s ) . a f t e r t h e g p i o s a r e c o n f i g u r e d a s g p i s , t h e u s e r c a n o p t t o a l s o t u r n o n p u l l - u p r e s i s t o r s a n d i n t e r r u p t g e n e r a t i o n c a p a b i l i t y , t h u s r e d u c i n g t h e a m o u n t o f s o f t w a r e m o n i t o r i n g a n d p r o c e s s o r i n t e r a c t i o n a n d s a v i n g p o w e r . t h e p r o g r a m m e d l e v e l o f t h e g p i i n t e r r u p t d e t e r m i n e s t h e a c t i v e l e v e l o f t h e g p i p i n . f o r e x a m p l e , i f a g p i i n t e r r u p t l e v e l
a d p 5 5 8 8 d a t a s h e e t r e v . c | p a g e 1 0 o f 2 8 i s p r o g r a m m e d a s h i g h , a h i g h o n t h a t p i n i s c o n s i d e r e d a c t i v e a n d m e e t s t h e i n t e r r u p t r e q u i r e m e n t . i f t h e i n t e r r u p t i s p r o - g r a m m e d a s l o w , a l o w o n t h a t p i n i s c o n s i d e r e d a c t i v e a n d m e e t s t h e i n t e r r u p t r e q u i r e m e n t . g p i d a t a a n d i n t e r r u p t s t a t u s a r e r e f l e c t e d i n t h e g p i o i n t e r r u p t a n d d a t a s t a t u s r e g i s t e r s ( r e g i s t e r 0 x 1 1 t h r o u g h r e g i s t e r 0 x 1 6 ) . c a u t i o n m u s t b e t a k e n d u r i n g s o f t w a r e i m p l e m e n t a t i o n b e c a u s e a n i n t e r r u p t m a y b e s e t i m m e d i a t e l y a f t e r r e g i s t e r s e t t i n g s . t o p r e v e n t t h i s , c o r r e c t l o g i c l e v e l s m u s t b e p r e s e n t a t t h e g p i s , a n d t h e g p i o i n t e r r u p t l e v e l m u s t b e s e t b e f o r e g p i o i n t e r r u p t e n a b l e o r g p i e v e n t f i f o e n a b l e r e g i s t e r s a r e s e t . f i g u r e 8 s h o w s t h e i n t e r r u p t g e n e r a t i o n s c h e m e , w h e r e d x r e p r e s e n t s a n y o n e o f t h e 1 8 g p i o s . d x _ i n d x _ i n _ i e n r e g . 0 x 2 3 t h r o u g h 0 x 2 5 d x _ i n _ i s t a t r e g . 0 x 1 1 t h r o u g h 0 x 1 3 r e a d t w i c e t o c l e a r g p i _ i n t r e g . 0 x 0 2 w r i t e 1 t o c l e a r r e g . 0 x 0 1 i n t d r i v e i n t e r r u p t c o n d i t i o n d e c o d e d x _ i l v l r e g . 0 x 2 6 t h r o u g h 0 x 2 8 0 7 6 7 3 - 0 1 3 a n d f i g u r e 8 . g p i o i n t e r r u p t g e n e r a t i o n g p i e v e n t s a c o l u m n o r r o w c o n f i g u r e d a s a g p i c a n b e p r o g r a m m e d t o b e p a r t o f t h e k e y e v e n t t a b l e a n d t h e r e f o r e a l s o c a p a b l e o f g e n e r - a t i n g a k e y e v e n t i n t e r r u p t . a k e y e v e n t i n t e r r u p t c a u s e d b y a g p i f o l l o w s t h e s a m e p r o c e s s f l o w a s a k e y e v e n t i n t e r r u p t c a u s e d b y a k e y p r e s s . g p i s c o n f i g u r e d a s p a r t o f t h e k e y e v e n t t a b l e a l l o w s i n g l e k e y s w i t c h e s a n d o t h e r g p i i n t e r r u p t s t o b e m o n i t o r e d . a s p a r t o f t h e e v e n t t a b l e , g p i s a r e r e p r e s e n t e d b y t h e d e c i m a l v a l u e 9 7 ( 0 x 6 1 o r 1 1 0 0 0 0 1 ) t h r o u g h t h e d e c i m a l v a l u e 1 1 4 ( 0 x 7 2 o r 1 1 1 0 0 1 0 ) . s e e t a b l e 1 3 a n d t a b l e 1 4 f o r g p i e v e n t n u m b e r a s s i g n m e n t s f o r r o w s a n d c o l u m n s . t a b l e 1 3 . g p i e v e n t n u m b e r a s s i g n m e n t s f o r r o w s r 0 r 1 r 2 r 3 r 4 r 5 r 6 r 7 9 7 9 8 9 9 1 0 0 1 0 1 1 0 2 1 0 3 1 0 4 t a b l e 1 4 . g p i e v e n t n u m b e r a s s i g n m e n t s f o r c o l u m n s c 0 c 1 c 2 c 3 c 4 c 5 c 6 c 7 c 8 c 9 1 0 5 1 0 6 1 0 7 1 0 8 1 0 9 1 1 0 1 1 1 1 1 2 1 1 3 1 1 4 f o r a g p i t h a t i s s e t a s a c t i v e h i g h , a n d i s e n a b l e d i n t h e k e y e v e n t t a b l e , t h e s t a t e m a c h i n e a d d s a n e v e n t t o t h e e v e n t c o u n t a n d e v e n t t a b l e w h e n e v e r t h a t g p i g o e s h i g h . i f t h e g p i i s s e t t o a c t i v e l o w , a t r a n s i t i o n f r o m h i g h t o l o w i s c o n s i d e r e d a p r e s s a n d i s a l s o a d d e d t o t h e e v e n t c o u n t a n d e v e n t t a b l e . a f t e r t h e i n t e r r u p t s t a t e i s m e t , t h e s t a t e m a c h i n e i n t e r n a l l y s e t s a n i n t e r r u p t f o r t h e o p p o s i t e s t a t e p r o g r a m m e d i n t h e r e g i s t e r t o p r e v e n t p o l l i n g f o r t h e r e l e a s e d s t a t e , t h e r e b y s a v i n g c u r r e n t . a f t e r t h e r e l e a s e d s t a t e i s a c h i e v e d , i t i s a d d e d t o t h e e v e n t t a b l e . t h e p r e s s a n d r e l e a s e a r e s t i l l i n d i c a t e d b y b i t 7 i n t h e e v e n t r e g i s t e r ( r e g i s t e r 0 x 0 4 t h r o u g h r e g i s t e r 0 x 0 d ) . t h e g p i e v e n t s c a n a l s o b e u s e d a s u n l o c k e d s e q u e n c e s . w h e n t h e g p i _ e m _ r e g x b i t i n r e g i s t e r 0 x 2 0 t h r o u g h r e g i s t e r 0 x 2 2 i s s e t , g p i e v e n t s a r e n o t t r a c k e d w h e n t h e k e y p a d i s l o c k e d . t h e g p i e m _ c f g b i t ( r e g i s t e r 0 x 0 1 , b i t 6 ) m u s t b e c l e a r e d f o r t h e g p i e v e n t s t o b e t r a c k e d i n t h e e v e n t c o u n t e r a n d e v e n t t a b l e w h e n t h e k e y p a d i s l o c k e d . 5 0 m i c r o s e c o n d i n t e r r u p t c o n f i g u r a t i o n t h e a d p 5 5 8 8 g i v e s t h e u s e r t h e f l e x i b i l i t y o f d e a s s e r t i n g t h e i n t e r r u p t f o r 5 0  s w h i l e t h e r e i s a p e n d i n g e v e n t . w h e n t h e i n t _ c f g b i t i n r e g i s t e r 0 x 0 1 i s s e t , a n y a t t e m p t t o c l e a r t h e i n t e r r u p t b i t w h i l e t h e i n t e r r u p t p i n i s a l r e a d y a s s e r t e d r e s u l t s i n a 5 0  s d e a s s e r t i o n . w h e n t h e i n t _ c f g b i t i s c l e a r e d , p r o c e s s o r i n t e r r u p t r e m a i n s a s s e r t e d i f t h e h o s t t r i e s t o c l e a r t h e i n t e r r u p t . t h i s f e a t u r e i s p a r t i c u l a r l y u s e f u l f o r s o f t w a r e d e v e l o p m e n t a n d e d g e t r i g g e r i n g a p p l i c a t i o n s . c o m p a r a t o r 1 i n t e r r u p t k e y e v e n t i n t e r r u p t k e y l o c k i n t e r r u p t o v e r f l o w i n t e r r u p t c o m p a r a t o r 2 i n t e r r u p t g p i o i n t e r r u p t i n t o r i n t e r r u p t c o n f i g u r a t i o n o v r _ f l o w _ i e n k _ l c k _ i m g p i _ i e n k e _ i e n g p i e m _ c f g k e y p a d l o c k i n t e r r u p t m a s k t i m e r k _ l c k _ e n i n t l o g i c v c c 0 7 6 7 3 - 0 1 4 f i g u r e 9 . i n t p i n d r i v e
d a t a s h e e t a d p 5 5 8 8 r e v . c | p a g e 1 1 o f 2 8 s t a r t m a s k t i m e r = 0 k e y p r e s s d e t e c t e d n o n o y e s n o n o n o y e s y e s y e s n o y e s y e s y e s n o y e s y e s n o n o y e s y e s n o g e n e r a t e k e i n t e r r u p t s t a r t m a s k t i m e r m a s k t i m e r e x p i r e s m a s k t i m e r e x p i r e s g e n e r a t e k e y l o c k i n t e r r u p t f i r s t u n l o c k k e y d e t e c t e d s e c o n d u n l o c k k e y d e t e c t e d s t a r t u n l o c k 1 t o u n l o c k 2 u n l o c k 1 t o u n l o c k 2 t i m e r e x p i r e s k e y p r e s s d e t e c t e d s t a r t u n l o c k 1 t o u n l o c k 2 f i r s t u n l o c k k e y d e t e c t e d g e n e r a t e k e y l o c k i n t e r r u p t s e c o n d u n l o c k k e y d e t e c t e d u n l o c k 1 t o u n l o c k 2 t i m e r e x p i r e s n o 0 7 6 7 3 - 0 1 5 f i g u r e 1 0 . k e y p a d l o c k i n t e r r u p t m a s k t i m e r f l o w c h a r t d e b o u n c i n g t h e a d p 5 5 8 8 h a s a 5 0  s d e b o u n c e t i m e f o r g p i o s c o n f i g u r e d a s g p i s a n d r o w s i n k e y p a d s c a n n i n g m o d e . t h e r e s e t l i n e a l w a y s h a s a 5 0  s d e b o u n c e t i m e . g e n e r a l p u r p o s e o u t p u t s ( g p o s ) t h e a d p 5 5 8 8 a l l o w s t h e u s e r t o c o n f i g u r e a l l o r s o m e o f i t s g p i o s a s g p o s . t h e s e g p o s c a n b e u s e d a s e x t r a e n a b l e s f o r t h e h o s t p r o c e s s o r o r s i m p l y a s t r i g g e r o u t p u t s . w h e n c o n f i g u r e d a s a n o u t p u t ( g p o ) , a d i g i t a l b u f f e r d r i v e s t h e p i n t o 0 v f o r a 0 a n d t o v c c f o r a 1 . t o s e t a n y g p i o a s a g p o , m a k e s u r e t h a t t h e c o r r e s p o n d i n g b i t s i n r e g i s t e r 0 x 1 d t h r o u g h r e g i s t e r 0 x 1 f a r e s e t f o r g p i o m o d e ; t h e n u s e r e g i s t e r 0 x 2 3 t h r o u g h r e g i s t e r 0 x 2 5 t o s e t t h e c o r r e s p o n d i n g b i t s f o r g p o m o d e . p o w e r - o n r e s e t f o r b u i l t - i n p o w e r - u p i n i t i a l i z a t i o n f o r a p p l i c a t i o n s l a c k i n g a p o w e r - o n r e s e t s i g n a l , a r e s e t p i n , r s t , a l l o w s t h e u s e r t o r e s e t t h e r e g i s t e r s t o d e f a u l t v a l u e s i n t h e e v e n t o f a b r o w n o u t o r o t h e r r e s e t c o n d i t i o n s . a m b i e n t l i g h t s e n s i n g t h e a d p 5 5 8 8 h a s b u i l t i n l i g h t s e n s o r c o m p a r a t o r i n p u t s t o d e t e c t a m b i e n t l i g h t c o n d i t i o n s . a n a d c s a m p l e s t h e o u t p u t o f e x t e r n a l p h o t o s e n s o r s c o n n e c t e d t o t h e c o m p a r a t o r i n p u t s , a n d t h e r e s u l t i s f e d i n t o p r o g r a m m a b l e t r i p c o m p a r a t o r s . t h e a d c h a s a n i n p u t r a n g e o f 0  a t o 1 0 0 0  a ( t y p i c a l ) . t h e d e v i c e c a n h a n d l e u p t o t w o p h o t o s e n s o r s ( u s e r e g i s t e r 0 x 3 0 t h r o u g h r e g i s t e r 0 x 3 a t o c o n f i g u r e t h e p h o t o s e n s o r i n p u t s ) .
a d p 5 5 8 8 d a t a s h e e t r e v . c | p a g e 1 2 o f 2 8 l i g h t s e n s o r i n p u t s e a c h l i g h t s e n s o r i n p u t h a s t w o b u i l t - i n c o m p a r a t o r s ( t h e l 2 c o m p a r a t o r a n d t h e l 3 c o m p a r a t o r ) w i t h t w o p r o g r a m m a b l e t r i p p o i n t s , l 2 a n d l 3 . t h e t r i p p o i n t s a r e u s e d t o s e l e c t a m o n g t h r e e o p e r a t i o n m o d e s b a s e d o n a m b i e n t l i g h t i n g c o n d i t i o n s : o u t d o o r , o f f i c e , a n d d a r k m o d e s . b r i g h t n e s s l 3 l 2 d a r k o f f i c e o u t d o o r 0 l u x 1 k l u x 0 a 1 0 0 0 a l 2 = 1 l 3 = 1 l 2 = 1 l 3 = 0 l 2 = 0 l 3 = 0 0 7 6 7 3 - 0 1 6 f i g u r e 1 1 . l i g h t s e n s o r c o m p a r a t o r m o d e s a n d t r i p p o i n t s l 2 c o m p a r a t o r t h e l 2 c o m p a r a t o r i s u s e d t o d e t e c t w h e n t h e p h o t o s e n s o r o u t p u t d r o p s b e l o w t h e p r o g r a m m a b l e l 2 _ t r i p p o i n t . w h e n t h i s e v e n t o c c u r s , t h e l 2 _ o u t s t a t u s s i g n a l i s s e t . l 2 _ c m p r c o n t a i n s p r o g r a m m a b l e h y s t e r e s i s , m e a n i n g t h a t t h e p h o t o - s e n s o r o u t p u t m u s t r i s e a b o v e l 2 _ t r i p + l 2 _ h y s b e f o r e l 2 _ o u t i s c l e a r e d . l 2 _ c m p r i s e n a b l e d v i a t h e l 2 _ e n b i t ( b i t 0 , r e g i s t e r 0 x 3 1 f o r s e n s o r 1 a n d b i t 0 , r e g i s t e r 0 x 3 2 f o r s e n s o r 2 ) . t h e l 2 _ t r i p a n d l 2 _ h y s v a l u e s o f l 2 _ c m p r c a n b e s e t b e t w e e n 0  a a n d 1 0 0 0  a i n s t e p s o f 4  a . l 3 c o m p a r a t o r t h e l 3 c o m p a r a t o r i s u s e d t o d e t e c t w h e n t h e p h o t o s e n s o r o u t p u t d r o p s b e l o w t h e p r o g r a m m a b l e l 3 _ t r i p p o i n t . w h e n t h i s e v e n t o c c u r s , t h e l 3 _ o u t s t a t u s s i g n a l i s s e t . l 3 _ c m p r c o n t a i n s p r o g r a m m a b l e h y s t e r e s i s , m e a n i n g t h a t t h e p h o t o - s e n s o r o u t p u t m u s t r i s e a b o v e l 3 _ t r i p + l 3 _ h y s b e f o r e l 3 _ o u t i s c l e a r e d . l 3 _ c m p r i s e n a b l e d v i a t h e l 3 _ e n b i t . t h e l 3 _ t r i p a n d l 3 _ h y s v a l u e s o f l 3 _ c m p r c a n b e s e t b e t w e e n 0  a a n d 1 2 7 . 5  a i n s t e p s o f 0 . 5  a . l 3 _ t r i p l 2 _ t r i p l 3 _ h y s t l 2 _ h y s t 1 1 0 1 0 0 1 0 0 0 a d c r a n g e ( a ) 0 7 6 7 3 - 0 1 7 f i g u r e 1 2 . c o m p a r a t o r r a n g e s t h e l 2 _ c m p r a n d l 3 _ c m p r c o m p a r a t o r s c a n b e e n a b l e d i n d e p e n d e n t l y o f e a c h o t h e r , a n d t h e a d c a n d c o m p a r a t o r ( s ) r u n c o n t i n u o u s l y w h e n l 2 _ e n a n d / o r l 3 _ e n i s s e t . p h o t o s e n s o r o p e r a t i o n t h e c o m p a r a t o r i n p u t s r e m a i n i d l e u n t i l e n a b l e d , a t w h i c h p o i n t t h e y d e t e c t l i g h t i n g c o n d i t i o n s f r o m t h e p h o t o s e n s o r o u t p u t . d e p e n d i n g o n l i g h t i n g c o n d i t i o n s , a n d w h e r e t h e l 2 a n d l 3 t r i p p o i n t s a r e s e t i n t h e c o m p a r a t o r l e v e l t r i p r e g i s t e r s ( r e g i s t e r 0 x 3 3 t h r o u g h r e g i s t e r 0 x 3 a ) , t h e c o m p a r a t o r s s e t a v a l u e o f 1 o r 0 t o l 2 _ o u t a n d l 3 _ o u t . t h e v a l u e s o f l 2 a n d l 3 d e t e r m i n e w h a t m o d e o r s e t t i n g a d j u s t m e n t i s r e q u i r e d f o r a p a r t i c u l a r l i g h t i n g c o n d i t i o n . f i g u r e 1 1 , f i g u r e 1 2 , a n d t a b l e 1 5 s u m m a r i z e t h e m o d e s e t t i n g s a n d l o g i c a l v a l u e s o f l 2 a n d l 3 . t a b l e 1 5 . l 2 _ o u t a n d l 3 _ o u t c o m p a r a t o r m o d e c o m b i n a t i o n l 3 l 2 m o d e 0 0 o u t d o o r 0 1 o f f i c e 1 1 d a r k i t i s a l s o p o s s i b l e t o u s e t h e l i g h t s e n s o r c o m p a r a t o r s i n s i n g l e - s h o t m o d e . a s i n g l e - s h o t m e a s u r e m e n t i s d o n e w h e n t h e f o r c e _ r d b i t i n r e g i s t e r 0 x 3 1 i s s e t . a f t e r t h e s i n g l e - s h o t m e a s u r e m e n t i s c o m p l e t e d , t h e i n t e r n a l s t a t e m a c h i n e c l e a r s t h e f o r c e _ r d b i t . i t t a k e s 8 0 m s f o r a c o m p l e t e c o n v e r s i o n . t o r e d u c e t h e p o t e n t i a l f o r f l i c k e r i n g , t h e s e n s o r s c a n b e p r o g r a m m e d f o r a n u m b e r o f s e q u e n t i a l r e a d i n g s . t h e f i l t e r s e t t i n g s i n r e g i s t e r 0 x 3 1 a n d r e g i s t e r 0 x 3 2 d e t e r m i n e t h e n u m b e r o f s e q u e n t i a l r e a d i n g s n e e d e d b y t h e u s e r ; t h e s e s e t t i n g s r a n g e f r o m 8 0 m s t o 1 0 . 2 4 s e c . l 2 _ t r i p l 2 _ h y s t f i l t e r s e t t i n g l 2 _ e n l 2 _ o u t l 3 _ o u t c o m p i n p u t a d c p h o t o - s e n s o r l 3 _ e n v c c l 2 _ c m p l 3 _ c m p l 3 _ t r i p l 3 _ h y s t 0 7 6 7 3 - 0 1 8 f i g u r e 1 3 . l i g h t s e n s o r a n d t r i p p o i n t s b l o c k d i a g r a m
d a t a s h e e t a d p 5 5 8 8 r e v . c | p a g e 1 3 o f 2 8 c o m p a r a t o r i n t e r r u p t t h e a d p 5 5 8 8 a l l o w s t h e u s e r t o t r i g g e r a n i n t e r r u p t b a s e d o n t h e l i g h t s e n s o r c o m p a r a t o r i n p u t s . c h a n g e s i n l i g h t i n g c o n d i t i o n t h a t c a u s e t h e s e t t i n g s o f l 2 a n d l 3 t o j u m p f r o m o n e m o d e t o a n o t h e r ( d a r k , o f f i c e , o u t d o o r ) s e t t h e c o m p a r a t o r i n t e r r u p t b i t s i n r e g i s t e r 0 x 0 2 . i f t h e c o m p a r a t o r i n t e r r u p t e n a b l e b i t s a r e s e t , t h e i n t e r r u p t p i n i s a s s e r t e d e v e r y t i m e t h e c o m p a r a t o r i n t e r r u p t b i t s a r e s e t . t h e c o m p a r a t o r i n t e r r u p t f l a g c a n b e c l e a r e d o n l y b y w r i t i n g a 1 t o i t . t a b l e 1 6 . d e v i c e c o n f i g u r a t i o n k e y p a d g p i o p h o t o s e n s o r i n p u t s m a t r i x a c t i v e p i n s n u m b e r o f k e y s a v a i l a b l e g p i o n u m b e r o f g p i o s p h o t o s e n s o r i n p u t p i n ( s ) n u m b e r o f p h o t o s e n s o r i n p u t s 1 0 8 c 0 t o c 9 , r 0 t o r 7 8 0 0 0 n o n e 0 8 8 c 0 t o c 7 , r 0 t o r 7 6 4 0 0 c 8 , c 9 2 c 8 1 c 9 1 c 9 1 c 8 1 8 7 c 0 t o c 7 , r 0 t o r 6 5 6 r 7 1 c 8 , c 9 2 c 8 , r 7 2 c 9 1 r 7 , c 8 , c 9 3 n o n e 0 8 6 c 0 t o c 7 , r 0 t o r 5 4 8 r 6 , r 7 2 c 8 , c 9 2 r 6 , r 7 , c 8 3 c 9 1 r 6 , r 7 , c 8 , c 9 4 n o n e 0 8 5 c 0 t o c 7 , r 0 t o r 4 4 0 r 5 , r 7 3 c 8 , c 9 2 r 5 t o r 7 , c 8 4 c 9 1 r 5 t o r 7 , c 8 t o c 9 5 n o n e 0 7 7 c 0 t o c 6 , r 0 t o r 6 4 9 r 7 , c 7 2 c 8 , c 9 2 r 7 , c 7 t o c 8 3 c 9 1 r 7 , c 7 t o c 9 4 n o n e 0 7 6 c 0 t o c 6 , r 0 t o r 5 4 2 r 6 t o r 7 , c 7 3 c 8 , c 9 2 r 6 t o r 7 , c 7 t o c 8 4 c 9 1 r 6 t o r 7 , c 7 t o c 9 5 n o n e 0 7 5 c 0 t o c 6 , r 0 t o r 4 3 5 r 5 t o r 7 , c 7 4 c 8 , c 9 2 r 5 t o r 7 , c 7 t o c 8 5 c 9 1 r 5 t o r 7 , c 7 t o c 9 6 n o n e 0 6 6 c 0 t o c 5 , r 0 t o r 5 3 6 r 6 t o r 7 , c 6 t o c 7 4 c 8 , c 9 2 r 6 t o r 7 , c 6 t o c 8 5 c 9 1 r 6 t o r 7 , c 6 t o c 9 6 n o n e 0 6 5 c 0 t o c 5 , r 0 t o r 4 3 0 r 5 t o r 7 , c 6 t o c 7 5 c 8 , c 9 2 r 5 t o r 7 , c 6 t o c 8 6 c 9 1 r 5 t o r 7 , c 6 t o c 9 7 n o n e 0 6 4 c 0 t o c 5 , r 0 t o r 3 2 4 r 4 t o r 7 , c 6 t o c 7 6 c 8 , c 9 2 r 4 t o r 7 , c 6 t o c 8 7 c 9 1 r 4 t o r 7 , c 6 t o c 9 8 n o n e 0 ? ? ? ? ? ? ? 0 0 n o n e 0 r 0 t o r 7 , c 0 t o c 9 1 8 n o n e 0
a d p 5 5 8 8 d a t a s h e e t r e v . c | p a g e 1 4 o f 2 8 i 2 c p r o g r a m m i n g a n d d i g i t a l c o n t r o l t h e a d p 5 5 8 8 p r o v i d e s f u l l s o f t w a r e p r o g r a m m a b i l i t y t o f a c i l i t a t e i t s a d o p t i o n i n v a r i o u s p r o d u c t a r c h i t e c t u r e s . a l l r e g i s t e r p r o g r a m m i n g i s d o n e v i a t h e i 2 c b u s a t a d d r e s s 0 x 6 9 ( 0 1 1 0 1 0 0 1 ) f o r a r e a d a n d a d d r e s s 0 x 6 8 ( 0 1 1 0 1 0 0 0 ) f o r a w r i t e . a l l c o m m u n i c a t i o n t o t h e a d p 5 5 8 8 i s d o n e v i a i t s i 2 c - c o m p a t i b l e s e r i a l i n t e r f a c e . f i g u r e 1 4 s h o w s a t y p i c a l w r i t e s e q u e n c e f o r p r o g r a m m i n g a n i n t e r n a l r e g i s t e r . t h e c y c l e b e g i n s w i t h a s t a r t c o n d i t i o n f o l l o w e d b y t h e c h i p w r i t e a d d r e s s ( 0 x 6 8 ) . t h e a d p 5 5 8 8 a c k n o w l e d g e s t h e c h i p w r i t e a d d r e s s b y t e b y p u l l i n g t h e d a t a l i n e l o w . t h e a d d r e s s o f t h e r e g i s t e r t o w h i c h d a t a i s t o b e w r i t t e n i s s e n t n e x t . t h e a d p 5 5 8 8 a c k n o w l e d g e s t h e r e g i s t e r a d d r e s s b y t e b y p u l l i n g t h e d a t a l i n e l o w . t h e d a t a b y t e t o b e w r i t t e n i s s e n t n e x t . t h e a d p 5 5 8 8 a c k n o w l e d g e s t h e d a t a b y t e b y p u l l i n g t h e d a t a l i n e l o w . a s t o p c o n d i t i o n c o m p l e t e s t h e s e q u e n c e . f i g u r e 1 5 s h o w s a t y p i c a l r e a d s e q u e n c e f o r r e a d i n g b a c k a n i n t e r n a l r e g i s t e r . t h e c y c l e b e g i n s w i t h a s t a r t c o n d i t i o n f o l l o w e d b y t h e c h i p w r i t e a d d r e s s ( 0 x 6 8 ) . t h e a d p 5 5 8 8 a c k n o w l e d g e s t h e c h i p w r i t e a d d r e s s b y t e b y p u l l i n g t h e d a t a l i n e l o w . t h e a d d r e s s o f t h e r e g i s t e r f r o m w h i c h d a t a i s t o b e r e a d i s s e n t n e x t . t h e a d p 5 5 8 8 a c k n o w l e d g e s t h e r e g i s t e r a d d r e s s b y t e b y p u l l i n g t h e d a t a l i n e l o w . t h e c y c l e c o n t i n u e s w i t h a r e p e a t s t a r t f o l l o w e d b y t h e c h i p r e a d a d d r e s s ( 0 x 6 9 ) . t h e a d p 5 5 8 8 a c k n o w l e d g e s t h e c h i p r e a d a d d r e s s b y t e b y p u l l i n g t h e d a t a l i n e l o w . t h e a d p 5 5 8 8 p l a c e s t h e c o n t e n t s o f t h e p r e v i o u s l y a d d r e s s e d r e g i s t e r o n t h e b u s f o r r e a d b a c k . t h e r e i s n o a c k n o w l e d g e f o l l o w i n g t h e r e a d b a c k d a t a b y t e , a n d t h e c y c l e i s c o m p l e t e d w i t h a s t o p c o n d i t i o n . s u b a d d r e s s c h i p a d d r e s s s t 0 1 1 0 0 0 0 0 0 0 s p 0 = w r i t e a d p 5 5 8 8 a c k a d p 5 5 8 8 a c k a d p 5 5 8 8 r e c e i v e s d a t a a d p 5 5 8 8 a c k 0 7 6 7 3 - 0 1 9 0 f i g u r e 1 4 . i 2 c w r i t e s e q u e n c e s u b a d d r e s s c h i p a d d r e s s c h i p a d d r e s s s t 0 1 1 0 0 0 0 0 0 0 0 0 0 0 1 1 0 s t 0 1 1 0 0 0 0 0 1 s p 1 = r e a d a d p 5 5 8 8 n o a c k a d p 5 5 8 8 s e n d s d a t a a d p 5 5 8 8 a c k a d p 5 5 8 8 a c k a d p 5 5 8 8 a c k 0 7 6 7 3 - 0 2 0 0 = w r i t e 0 1 f i g u r e 1 5 . i 2 c r e a d a n d w r i t e s e q u e n c e s r e a d s t a r t a d d r c h i p a d d r e s s c h i p a d d r e s s s t 0 1 1 0 1 0 0 0 0 0 0 0 0 0 1 1 0 s t 0 1 1 0 1 0 0 0 0 1 = r e a d a d p 5 5 8 8 a c k a d p 5 5 8 8 s e n d s d a t a 1 a d p 5 5 8 8 a c k a d p 5 5 8 8 a c k a d p 5 5 8 8 a c k 0 7 6 7 3 - 0 2 1 0 = w r i t e 0 1 a d p 5 5 8 8 n o a c k 1 a d p 5 5 8 8 s e n d s d a t a n . . . s t s t o p s t a r t f i g u r e 1 6 . i 2 c r e a d a u t o i n c r e m e n t
d a t a s h e e t a d p 5 5 8 8 r e v . c | p a g e 1 5 o f 2 8 r e g i s t e r s t h e g e n e r a l b e h a v i o r o f r e g i s t e r s i s a s f o l l o w s : x a l l r e g i s t e r s a r e 0 o n r e s e t . x a l l r e g i s t e r s a r e r e a d / w r i t e u n l e s s o t h e r w i s e s p e c i f i e d . x u n u s e d b i t s a r e r e a d a s 0 . x i n t e r r u p t b i t s a r e c l e a r e d b y w r i t i n g 1 t o t h e f l a g ; w r i t i n g 0 o r r e a d i n g t h e f l a g h a s n o e f f e c t , w i t h t h e e x c e p t i o n o f t h e k e y p r e s s , k e y r e l e a s e , a n d g p i o i n t e r r u p t s t a t u s r e g i s t e r s , w h i c h a r e c l e a r e d o n a r e a d . t a b l e 1 7 . a d d r e s s r e g i s t e r n a m e d e s c r i p t i o n 0 x 0 0 d e v _ i d d e v i c e i d 0 x 0 1 c f g c o n f i g u r a t i o n r e g i s t e r 1 0 x 0 2 i n t _ s t a t i n t e r r u p t s t a t u s r e g i s t e r 0 x 0 3 k e y _ l c k _ e c _ s t a t k e y l o c k a n d e v e n t c o u n t e r r e g i s t e r 0 x 0 4 k e y _ e v e n t a k e y e v e n t r e g i s t e r a 0 x 0 5 k e y _ e v e n t b k e y e v e n t r e g i s t e r b 0 x 0 6 k e y _ e v e n t c k e y e v e n t r e g i s t e r c 0 x 0 7 k e y _ e v e n t d k e y e v e n t r e g i s t e r d 0 x 0 8 k e y _ e v e n t e k e y e v e n t r e g i s t e r e 0 x 0 9 k e y _ e v e n t f k e y e v e n t r e g i s t e r f 0 x 0 a k e y _ e v e n t g k e y e v e n t r e g i s t e r g 0 x 0 b k e y _ e v e n t h k e y e v e n t r e g i s t e r h 0 x 0 c k e y _ e v e n t i k e y e v e n t r e g i s t e r i 0 x 0 d k e y _ e v e n t j k e y e v e n t r e g i s t e r j 0 x 0 e k p _ l c k _ t m r k e y p a d u n l o c k 1 t o k e y p a d u n l o c k 2 t i m e r 0 x 0 f u n l o c k 1 u n l o c k k e y 1 0 x 1 0 u n l o c k 2 u n l o c k k e y 2 0 x 1 1 g p i o _ i n t _ s t a t 1 g p i o i n t e r r u p t s t a t u s 0 x 1 2 g p i o _ i n t _ s t a t 2 g p i o i n t e r r u p t s t a t u s 0 x 1 3 g p i o _ i n t _ s t a t 3 g p i o i n t e r r u p t s t a t u s 0 x 1 4 g p i o _ d a t _ s t a t 1 g p i o d a t a s t a t u s , r e a d t w i c e t o c l e a r 0 x 1 5 g p i o _ d a t _ s t a t 2 g p i o d a t a s t a t u s , r e a d t w i c e t o c l e a r 0 x 1 6 g p i o _ d a t _ s t a t 3 g p i o d a t a s t a t u s , r e a d t w i c e t o c l e a r 0 x 1 7 g p i o _ d a t _ o u t 1 g p i o d a t a o u t 0 x 1 8 g p i o _ d a t _ o u t 2 g p i o d a t a o u t 0 x 1 9 g p i o _ d a t _ o u t 3 g p i o d a t a o u t 0 x 1 a g p i o _ i n t _ e n 1 g p i o i n t e r r u p t e n a b l e 0 x 1 b g p i o _ i n t _ e n 2 g p i o i n t e r r u p t e n a b l e 0 x 1 c g p i o _ i n t _ e n 3 g p i o i n t e r r u p t e n a b l e 0 x 1 d k p _ g p i o 1 k e y p a d o r g p i o s e l e c t i o n 0 x 1 e k p _ g p i o 2 k e y p a d o r g p i o s e l e c t i o n 0 x 1 f k p _ g p i o 3 k e y p a d o r g p i o s e l e c t i o n 0 x 2 0 g p i _ e m _ r e g 1 g p i e v e n t m o d e 1 0 x 2 1 g p i _ e m _ r e g 2 g p i e v e n t m o d e 2 0 x 2 2 g p i _ e m _ r e g 3 g p i e v e n t m o d e 3 0 x 2 3 g p i o _ d i r 1 g p i o d a t a d i r e c t i o n 0 x 2 4 g p i o _ d i r 2 g p i o d a t a d i r e c t i o n 0 x 2 5 g p i o _ d i r 3 g p i o d a t a d i r e c t i o n 0 x 2 6 g p i o _ i n t _ l v l 1 g p i o e d g e / l e v e l d e t e c t 0 x 2 7 g p i o _ i n t _ l v l 2 g p i o e d g e / l e v e l d e t e c t 0 x 2 8 g p i o _ i n t _ l v l 3 g p i o e d g e / l e v e l d e t e c t 0 x 2 9 d e b o u n c e _ d i s 1 d e b o u n c e d i s a b l e 0 x 2 a d e b o u n c e _ d i s 2 d e b o u n c e d i s a b l e 0 x 2 b d e b o u n c e _ d i s 3 d e b o u n c e d i s a b l e 0 x 2 c g p i o _ p u l l 1 g p i o p u l l d i s a b l e 0 x 2 d g p i o _ p u l l 2 g p i o p u l l d i s a b l e
a d p 5 5 8 8 d a t a s h e e t r e v . c | p a g e 1 6 o f 2 8 a d d r e s s r e g i s t e r n a m e d e s c r i p t i o n 0 x 2 e g p i o _ p u l l 3 g p i o p u l l d i s a b l e 0 x 2 f n o t u s e d n o t u s e d 0 x 3 0 c m p _ c f g _ s t a t c o m p a r a t o r c o n f i g u r a t i o n a n d s t a t u s r e g i s t e r 0 x 3 1 c m p _ c o n f g _ s e n s 1 s e n s o r 1 c o m p a r a t o r c o n f i g u r a t i o n r e g i s t e r 0 x 3 2 c m p _ c o n f g _ s e n s 2 s e n s o r 2 c o m p a r a t o r c o n f i g u r a t i o n r e g i s t e r 0 x 3 3 c m p 1 _ l v l 2 _ t r i p l 2 l i g h t s e n s o r r e f e r e n c e l e v e l ( o u t p u t f a l l i n g f o r s e n s o r 1 ) 0 x 3 4 c m p 1 _ l v l 2 _ h y s l 2 l i g h t s e n s o r h y s t e r e s i s ( a c t i v e w h e n o u t p u t r i s i n g ) f o r s e n s o r 1 0 x 3 5 c m p 1 _ l v l 3 _ t r i p l 3 l i g h t s e n s o r r e f e r e n c e l e v e l ( o u t p u t f a l l i n g f o r s e n s o r 1 ) 0 x 3 6 c m p 1 _ l v l 3 _ h y s l 3 l i g h t s e n s o r h y s t e r e s i s ( a c t i v e w h e n o u t p u t r i s i n g ) f o r s e n s o r 1 0 x 3 7 c m p 2 _ l v l 2 _ t r i p l 2 l i g h t s e n s o r r e f e r e n c e l e v e l ( o u t p u t f a l l i n g f o r s e n s o r 2 ) 0 x 3 8 c m p 2 _ l v l 2 _ h y s l 2 l i g h t s e n s o r h y s t e r e s i s ( a c t i v e w h e n o u t p u t r i s i n g ) f o r s e n s o r 2 0 x 3 9 c m p 2 _ l v l 3 _ t r i p l 3 l i g h t s e n s o r r e f e r e n c e l e v e l ( o u t p u t f a l l i n g f o r s e n s o r 2 ) 0 x 3 a c m p 2 _ l v l 3 _ h y s l 3 l i g h t s e n s o r h y s t e r e s i s ( a c t i v e w h e n o u t p u t r i s i n g ) f o r s e n s o r 2 0 x 3 b c m p 1 _ a d c _ d a t _ r 1 c o m p a r a t o r 1 a d c d a t a r e g i s t e r 1 0 x 3 c c m p 1 _ a d c _ d a t _ r 2 c o m p a r a t o r 1 a d c d a t a r e g i s t e r 2 0 x 3 d c m p 2 _ a d c _ d a t _ r 1 c o m p a r a t o r 2 a d c d a t a r e g i s t e r 1 0 x 3 e c m p 2 _ a d c _ d a t _ r 2 c o m p a r a t o r 2 a d c d a t a r e g i s t e r 2 r e g i s t e r d e s c r i p t i o n s t a b l e 1 8 . d e v _ i d ? r e g i s t e r 0 x 0 0 ( d e v i c e i d ) r e g i s t e r n a m e r e g i s t e r d e s c r i p t i o n b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 d e v _ i d d e v i c e i d [ 3 : 0 ] , m f g i d [ 7 : 4 ] m f i d 3 m f i d 2 m f i d 1 m f i d 0 d i d 3 d i d 2 d i d 1 d i d 0 t a b l e 1 9 . c f g ? r e g i s t e r 0 x 0 1 ( c o n f i g u r a t i o n r e g i s t e r 1 ) f i e l d b i t d e s c r i p t i o n a u t o _ i n c 7 i 2 c a u t o i n c r e m e n t . b u r s t r e a d i s s u p p o r t e d ; b u r s t w r i t e i s n o t s u p p o r t e d . 1 : i 2 c a u t o i n c r e m e n t i s o n . 0 : i 2 c a u t o i n c r e m e n t i s o f f . g p i e m _ c f g 6 g p i e v e n t m o d e c o n f i g u r a t i o n . 1 : g p i e v e n t s a r e n o t t r a c k e d w h e n t h e k e y p a d i s l o c k e d . 0 : g p i e v e n t s a r e t r a c k e d w h e n t h e k e y p a d i s l o c k e d . o v r _ f l o w _ m 5 o v e r f l o w m o d e . 1 : o v e r f l o w m o d e i s o n ; r e g i s t e r o v e r f l o w d a t a s h i f t s i n , s t a r t i n g a t t h e l a s t e v e n t a n d l o s i n g f i r s t e v e n t d a t a . 0 : o v e r f l o w m o d e i s o f f ; r e g i s t e r o v e r f l o w d a t a i s l o s t . i n t _ c f g 4 i n t e r r u p t c o n f i g u r a t i o n . 1 : p r o c e s s o r i n t e r r u p t d e a s s e r t s f o r 5 0  s a n d r e a s s e r t s w i t h p e n d i n g k e y e v e n t s . 0 : p r o c e s s o r i n t e r r u p t r e m a i n s a s s e r t e d w h e n h o s t t r i e s t o c l e a r i n t e r r u p t w h i l e t h e r e i s a p e n d i n g k e y e v e n t . o v r _ f l o w _ i e n 3 o v e r f l o w i n t e r r u p t e n a b l e . 1 : o v e r f l o w i n t e r r u p t i s e n a b l e d . 0 : o v e r f l o w i n t e r r u p t i s d i s a b l e d . k _ l c k _ i m 2 k e y p a d l o c k i n t e r r u p t m a s k . 1 : k e y p a d l o c k i n t e r r u p t i s e n a b l e d . 0 : k e y p a d l o c k i n t e r r u p t i s d i s a b l e d . g p i _ i e n 1 g p i i n t e r r u p t e n a b l e . 1 : g p i i n t e r r u p t i s e n a b l e d . 0 : g p i i n t e r r u p t i s d i s a b l e d . k e _ i e n 0 k e y e v e n t s i n t e r r u p t e n a b l e . 1 : k e y e v e n t s i n t e r r u p t i s e n a b l e d . 0 : k e y e v e n t s i n t e r r u p t i s d i s a b l e d .
d a t a s h e e t a d p 5 5 8 8 r e v . c | p a g e 1 7 o f 2 8 t a b l e 2 0 . i n t _ s t a t ? r e g i s t e r 0 x 0 2 ( i n t e r r u p t s t a t u s r e g i s t e r ) f i e l d b i t d e s c r i p t i o n c m p 2 _ i n t 5 c o m p a r a t o r i n t e r r u p t s t a t u s . w h e n s e t , w r i t e 1 t o c l e a r . 1 : c o m p a r a t o r 2 i n t e r r u p t i s d e t e c t e d . 0 : c o m p a r a t o r 2 i n t e r r u p t i s n o t d e t e c t e d . c m p 1 _ i n t 4 c o m p a r a t o r i n t e r r u p t s t a t u s . w h e n s e t , w r i t e 1 t o c l e a r . 1 : c o m p a r a t o r 1 i n t e r r u p t i s d e t e c t e d . 0 : c o m p a r a t o r 1 i n t e r r u p t i s n o t d e t e c t e d . o v r _ f l o w _ i n t 1 3 o v e r f l o w i n t e r r u p t s t a t u s . w h e n s e t , w r i t e 1 t o c l e a r . 1 : o v e r f l o w i n t e r r u p t i s d e t e c t e d . 0 : o v e r f l o w i n t e r r u p t i s n o t d e t e c t e d . k _ l c k _ i n t 2 2 k e y l o c k i n t e r r u p t s t a t u s . w h e n s e t , w r i t e 1 t o c l e a r . 1 : k e y l o c k i n t e r r u p t i s d e t e c t e d . 0 : k e y l o c k i n t e r r u p t i s n o t d e t e c t e d . g p i _ i n t 1 , 3 1 g p i i n t e r r u p t s t a t u s . w h e n s e t , w r i t e 1 t o c l e a r . 1 : g p i i n t e r r u p t i s d e t e c t e d . 0 : g p i i n t e r r u p t i s n o t d e t e c t e d . k e _ i n t 1 , 3 0 k e y e v e n t s i n t e r r u p t s t a t u s . w h e n s e t , w r i t e 1 t o c l e a r . 1 : k e y e v e n t s i n t e r r u p t i s d e t e c t e d . 0 : k e y e v e n t s i n t e r r u p t i s n o t d e t e c t e d . 1 t h e k e _ i n t , g p i _ i n t , a n d o v r _ f l o w _ i n t b i t s r e f l e c t t h e s t a t u s o f t h e i n t e r r u p t s w h e n t h e i n t e r r u p t t y p e s a r e e n a b l e d e v e n i f t h e p r o c e s s o r i n t e r r u p t i s m a s k e d . 2 t h e k _ l c k _ i n t b i t i s t h e i n t e r r u p t t o t h e p r o c e s s o r w h e n t h e k e y p a d l o c k s e q u e n c e i s t r i g g e r e d . 3 i f t h e r e i s a p e n d i n g k e y e v e n t o r g p i i n t e r r u p t i n t h e i r r e s p e c t i v e r e g i s t e r s , k e _ i n t d o e s n o t c l e a r u n t i l t h e f i f o i s e m p t y , a n d t h e g p i _ i n t b i t d o e s n o t c l e a r u n t i l t h e c a u s e o f t h e i n t e r r u p t i s r e s o l v e d . t h e h o s t m u s t w r i t e a 1 t o t h e i n t b i t s t o c l e a r . t a b l e 2 1 . k e y _ l c k _ e c _ s t a t ? r e g i s t e r 0 x 0 3 ( k e y l o c k a n d e v e n t c o u n t e r r e g i s t e r ) f i e l d b i t d e s c r i p t i o n k _ l c k _ e n [ 6 ] 0 : l o c k f e a t u r e i s d i s a b l e d . 1 : l o c k f e a t u r e i s e n a b l e d . l c k 2 , l c k 1 [ 5 : 4 ] k e y p a d l o c k s t a t u s [ 1 : 0 ] ( 0 0 = u n l o c k e d ; 1 1 = l o c k e d ; r e a d o n l y b i t s ) . k e c 1 [ 3 : 0 ] k e y e v e n t c o u n t o f k e y e v e n t r e g i s t e r . 1 t h e k e c b i t i n d i c a t e s t h e k e y e v e n t c o u n t o f k e y e v e n t r e g i s t e r s t h a t h a v e v a l u e s i n t h e b i t ( k e c ( 0 0 0 0 ) = 0 e v e n t s , k e c ( 0 0 0 1 ) = 1 e v e n t , k e c ( 1 0 1 0 ) = 1 0 e v e n t s . a s t h e k e y e v e n t s a r e r e a d a n d c l e a r e d , t h e s t a t e m a c h i n e a u t o m a t i c a l l y r e d u c e s t h e e v e n t c o u n t o n k e c . t a b l e 2 2 . k e y _ e v e n t x ? r e g i s t e r 0 x 0 4 t o r e g i s t e r 0 x 0 d ( k e y e v e n t r e g i s t e r a t o k e y e v e n t r e g i s t e r j ) 1 r e g i s t e r n a m e r e g i s t e r d e s c r i p t i o n b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 k e y _ e v e n t a ( r e g i s t e r 0 x 0 4 ) k e y e v e n t r e g i s t e r a s t a t u s ( k e [ 6 : 0 ] = k e y n u m b e r ) , k p [ 7 ] = 0 : r e l e a s e d , 1 : p r e s s e d ( c l e a r e d o n r e a d ) k a 7 k a 6 k a 5 k a 4 k a 3 k a 2 k a 1 k a 0 k e y _ e v e n t b ( r e g i s t e r 0 x 0 5 ) k e y e v e n t r e g i s t e r b s t a t u s ( k e [ 6 : 0 ] = k e y n u m b e r ) , k p [ 7 ] = 0 : r e l e a s e d , 1 : p r e s s e d ( c l e a r e d o n r e a d ) k b 7 k b 6 k b 5 k b 4 k b 3 k b 2 k b 1 k b 0 k e y _ e v e n t c ( r e g i s t e r 0 x 0 6 ) k e y e v e n t r e g i s t e r c s t a t u s ( k e [ 6 : 0 ] = k e y n u m b e r ) , k p [ 7 ] = 0 : r e l e a s e d , 1 : p r e s s e d ( c l e a r e d o n r e a d ) k c 7 k c 6 k c 5 k c 4 k c 3 k c 2 k c 1 k c 0 k e y _ e v e n t d ( r e g i s t e r 0 x 0 7 ) k e y e v e n t r e g i s t e r b s t a t u s ( k e [ 6 : 0 ] = k e y n u m b e r ) , k p [ 7 ] = 0 : r e l e a s e d , 1 : p r e s s e d ( c l e a r e d o n r e a d ) k d 7 k d 6 k d 5 k d 4 k d 3 k d 2 k d 1 k d 0 k e y _ e v e n t e 2 ( r e g i s t e r 0 x 0 8 ) k e y e v e n t r e g i s t e r b s t a t u s ( k e [ 6 : 0 ] = k e y n u m b e r ) , k p [ 7 ] = 0 : r e l e a s e d , 1 : p r e s s e d ( c l e a r e d o n r e a d ) k e 7 k e 6 k e 5 k e 4 k e 3 k e 2 k e 1 k e 0 k e y _ e v e n t f ( r e g i s t e r 0 x 0 9 ) k e y e v e n t r e g i s t e r b s t a t u s ( k e [ 6 : 0 ] = k e y n u m b e r ) , k p [ 7 ] = 0 : r e l e a s e d , 1 : p r e s s e d ( c l e a r e d o n r e a d ) k f 7 k f 6 k f 5 k f 4 k f 3 k f 2 k f 1 k f 0 k e y _ e v e n t g ( r e g i s t e r 0 x 0 a ) k e y e v e n t r e g i s t e r b s t a t u s ( k e [ 6 : 0 ] = k e y n u m b e r ) , k p [ 7 ] = 0 : r e l e a s e d , 1 : p r e s s e d ( c l e a r e d o n r e a d ) k g 7 k g 6 k g 5 k g 4 k g 3 k g 2 k g 1 k g 0 k e y _ e v e n t h ( r e g i s t e r 0 x 0 b ) k e y e v e n t r e g i s t e r b s t a t u s ( k e [ 6 : 0 ] = k e y n u m b e r ) , k p [ 7 ] = 0 : r e l e a s e d , 1 : p r e s s e d ( c l e a r e d o n r e a d ) k h 7 k h 6 k h 5 k h 4 k h 3 k h 2 k h 1 k h 0
a d p 5 5 8 8 d a t a s h e e t r e v . c | p a g e 1 8 o f 2 8 r e g i s t e r n a m e r e g i s t e r d e s c r i p t i o n b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 k e y _ e v e n t i ( r e g i s t e r 0 x 0 c ) k e y e v e n t r e g i s t e r b s t a t u s ( k e [ 6 : 0 ] = k e y n u m b e r ) , k p [ 7 ] = 0 : r e l e a s e d , 1 : p r e s s e d ( c l e a r e d o n r e a d ) k i 7 k i 6 k i 5 k i 4 k i 3 k i 2 k i 1 k i 0 k e y _ e v e n t j ( r e g i s t e r 0 x 0 d ) k e y e v e n t r e g i s t e r b s t a t u s ( k e [ 6 : 0 ] = k e y n u m b e r ) , k p [ 7 ] = 0 : r e l e a s e d , 1 : p r e s s e d ( c l e a r e d o n r e a d ) k j 7 k j 6 k j 5 k j 4 k j 3 k j 2 k j 1 k j 0 1 d a t a i n k e y e v e n t s i s p r o v i d e d a s a f i f o , w h e r e d a t a i s s e q u e n t i a l l y p r o v i d e d o n e a c h r e a d , r e g a r d l e s s o f a n e v e n t r e g i s t e r r e a d . t h e u s e r c a n r e a d r e g i s t e r e v e n t a o n l y f o r a n e v e n t c o u n t o r c a n r e a d r e g i s t e r s s e q u e n t i a l l y . 2 k e [ 6 : 0 ] r e f l e c t s t h e v a l u e 1 t o 8 0 f o r k e y p r e s s e v e n t s a n d t h e v a l u e 9 7 t o 1 1 4 f o r g p i e v e n t s . f o r k e [ 7 : 0 ] , 0 = k e y r e l e a s e d e v e n t , 1 = k e y p r e s s e d e v e n t . f o r g p i e m _ c f g , 0 r e f l e c t s a c h a n g e i n t h e g p i f r o m g p i _ i n t _ l v l = t r u e t o g p i _ i n t _ l v l = f a l s e ; 1 r e f l e c t s a c h a n g e i n t h e g p i i n w h i c h t h e g p i _ i n t _ l v l c o n d i t i o n b e c o m e s t r u e . t a b l e 2 3 . k p _ l c k _ t m r ? r e g i s t e r 0 x 0 e ( k e y p a d u n l o c k 1 t o k e y p a d u n l o c k 2 t i m e r ) r e g i s t e r n a m e r e g i s t e r d e s c r i p t i o n b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 k p _ l c k _ t m r ( r e g i s t e r 0 x 0 e ) k e y p a d u n l o c k 1 t o k e y p a d u n l o c k 2 t i m e r [ 2 : 0 ] ( 0 : d i s a b l e d , 1 s e c t o 7 s e c ) k e y p a d l o c k i n t e r r u p t m a s k t i m e r [ 7 : 3 ] ( 0 : d i s a b l e d , 0 s e c t o 3 1 s e c ) 1 , 2 k i m t 7 k i m t 6 k i m t 5 k i m t 4 k i m t 3 k l l t 2 k l l t 1 k l l t 0 1 w h e n t h e k e y p a d l o c k i n t e r r u p t m a s k t i m e r i s e n a b l e d , t h e u s e r m u s t p r e s s t w o s p e c i f i c k e y s b e f o r e a k e y l o c k i n t e r r u p t i s g e n e r a t e d o r k e y p a d e v e n t s a r e r e c o r d e d . a f t e r t h e k e y p a d i s l o c k e d , t h e f i r s t t i m e t h a t t h e u s e r p r e s s e s a n y k e y , a k e y e v e n t i n t e r r u p t i s g e n e r a t e d . n o a d d i t i o n a l i n t e r r u p t i s g e n e r a t e d u n l e s s b o t h u n l o c k k e y s e q u e n c e s a r e c o r r e c t ; t h e n a k e y l o c k i n t e r r u p t i s g e n e r a t e d . w h e n t h e i n t e r r u p t m a s k t i m e r i s d i s a b l e d ( 0 ) , a n i n t e r r u p t i s g e n e r a t e d o n l y w h e n t h e c o r r e c t f u l l u n l o c k s e q u e n c e i s c o m p l e t e d . 2 t h e u n l o c k 1 a n d u n l o c k 2 t i m e r k e y s c a n b e e i t h e r a k e y s e q u e n c e o r g p i e m _ c f g s e q u e n c e . t h e u n l o c k t i m e r k e y s c a n b e p r o g r a m m e d w i t h a n y v a l u e o f t h e k e y s i n t h e k e y p a d m a t r i x o r a n y g p i v a l u e s t h a t a r e p a r t o f t h e k e y e v e n t t a b l e . t h e k e y l o c k e n a b l e b i t ( b i t 6 , r e g i s t e r 0 x 0 3 ) m u s t b e s e t t o l o c k t h e k e y p a d . t a b l e 2 4 . u n l o c k 1 ? r e g i s t e r 0 x 0 f ( u n l o c k k e y 1 ) r e g i s t e r n a m e r e g i s t e r d e s c r i p t i o n b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 u n l o c k 1 ( r e g i s t e r 0 x 0 f ) u n l o c k k e y 1 [ 6 : 0 ] ( c o n t a i n s k e y n u m b e r f o r u n l o c k k e y 1 ; 0 : d i s a b l e d ) n / a u l k 6 u l k 5 u l k 4 u l k 3 u l k 2 u l k 1 u l k 0 t a b l e 2 5 . u n l o c k 2 ? r e g i s t e r 0 x 1 0 ( u n l o c k k e y 2 ) r e g i s t e r n a m e r e g i s t e r d e s c r i p t i o n b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 u n l o c k 2 ( r e g i s t e r 0 x 1 0 ) u n l o c k k e y 2 [ 6 : 0 ] ( c o n t a i n s k e y n u m b e r f o r u n l o c k k e y 2 ; 0 : d i s a b l e d ) n / a u l k 6 u l k 5 u l k 4 u l k 3 u l k 2 u l k 1 u l k 0 t a b l e 2 6 . g p i o _ i n t _ s t a t x ? r e g i s t e r 0 x 1 1 t o r e g i s t e r 0 x 1 3 ( g p i o i n t e r r u p t s t a t u s ) r e g i s t e r n a m e r e g i s t e r d e s c r i p t i o n b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 g p i o _ i n t _ s t a t 1 ( r e g i s t e r 0 x 1 1 ) g p i o i n t e r r u p t s t a t u s ( u s e d t o c h e c k g p i o i n t e r r u p t s t a t u s , c l e a r e d o n r e a d ) r 7 i s r 6 i s r 5 i s r 4 i s r 3 i s r 2 i s r 1 i s r 0 i s g p i o _ i n t _ s t a t 2 ( r e g i s t e r 0 x 1 2 ) g p i o i n t e r r u p t s t a t u s ( u s e d t o c h e c k g p i o i n t e r r u p t s t a t u s , c l e a r e d o n r e a d ) c 7 i s c 6 i s c 5 i s c 4 i s c 3 i s c 2 i s c 1 i s c 0 i s g p i o _ i n t _ s t a t 3 ( r e g i s t e r 0 x 1 3 ) g p i o i n t e r r u p t s t a t u s ( u s e d t o c h e c k g p i o i n t e r r u p t s t a t u s , c l e a r e d o n r e a d ) n / a n / a n / a n / a n / a n / a c 9 i s c 8 i s t a b l e 2 7 . g p i o _ d a t _ s t a t x ? r e g i s t e r 0 x 1 4 t o r e g i s t e r 0 x 1 6 ( g p i o d a t a s t a t u s ) r e g i s t e r n a m e r e g i s t e r d e s c r i p t i o n b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 g p i o _ d a t _ s t a t 1 ( r e g i s t e r 0 x 1 4 ) g p i o d a t a s t a t u s ( s h o w s g p i o s t a t e w h e n r e a d f o r i n p u t s ) r 7 d s r 6 d s r 5 d s r 4 d s r 3 d s r 2 d s r 1 d s r 0 d s g p i o _ d a t _ s t a t 2 ( r e g i s t e r 0 x 1 5 ) g p i o d a t a s t a t u s ( s h o w s g p i o s t a t e w h e n r e a d f o r i n p u t s ) c 7 d s c 6 d s c 5 d s c 4 d s c 3 d s c 2 d s c 1 d s c 0 d s g p i o _ d a t _ s t a t 3 ( r e g i s t e r 0 x 1 6 ) g p i o d a t a s t a t u s ( s h o w s g p i o s t a t e w h e n r e a d f o r i n p u t s ) n / a n / a n / a n / a n / a n / a c 9 d s c 8 d s
d a t a s h e e t a d p 5 5 8 8 r e v . c | p a g e 1 9 o f 2 8 t a b l e 2 8 . g p i o _ d a t _ o u t x ? r e g i s t e r 0 x 1 7 t o r e g i s t e r 0 x 1 9 ( g p i o d a t a o u t ) r e g i s t e r n a m e r e g i s t e r d e s c r i p t i o n b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 g p i o _ d a t _ o u t 1 ( r e g i s t e r 0 x 1 7 ) g p i o d a t a o u t ( g p i o d a t a t o b e w r i t t e n t o g p i o o u t d r i v e r , i n p u t s a r e n o t a f f e c t e d ) . t h i s i s n e e d e d s o t h a t t h e v a l u e c a n b e w r i t t e n p r i o r t o b e i n g s e t a s a n o u t p u t . r 7 d o r 6 d o r 5 d o r 4 d o r 3 d o r 2 d o r 1 d o r 0 d o g p i o _ d a t _ o u t 2 ( r e g i s t e r 0 x 1 8 ) g p i o d a t a o u t ( g p i o d a t a t o b e w r i t t e n t o g p i o o u t d r i v e r , i n p u t s a r e n o t a f f e c t e d ) . t h i s i s n e e d e d s o t h a t t h e v a l u e c a n b e w r i t t e n p r i o r t o b e i n g s e t a s a n o u t p u t . c 7 d o c 6 d o c 5 d o c 4 d o c 3 d o c 2 d o c 1 d o c 0 d o g p i o _ d a t _ o u t 3 ( r e g i s t e r 0 x 1 9 ) g p i o d a t a o u t ( g p i o d a t a t o b e w r i t t e n t o g p i o o u t d r i v e r , i n p u t s a r e n o t a f f e c t e d ) . t h i s i s n e e d e d s o t h a t t h e v a l u e c a n b e w r i t t e n p r i o r t o b e i n g s e t a s a n o u t p u t . n / a n / a n / a n / a n / a n / a c 9 d o c 8 d o t a b l e 2 9 . g p i o _ i n t _ e n x ? r e g i s t e r 0 x 1 a t o r e g i s t e r 0 x 1 c ( g p i o i n t e r r u p t e n a b l e ) r e g i s t e r n a m e r e g i s t e r d e s c r i p t i o n b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 g p i o _ i n t _ e n 1 ( r e g i s t e r 0 x 1 a ) g p i o i n t e r r u p t e n a b l e ( e n a b l e s i n t e r r u p t s f o r g p i n p u t s o n l y ) r 7 i e r 6 i e r 5 i e r 4 i e r 3 i e r 2 i e r 1 i e r 0 i e g p i o _ i n t _ e n 2 ( r e g i s t e r 0 x 1 b ) g p i o i n t e r r u p t e n a b l e ( e n a b l e s i n t e r r u p t s f o r g p i n p u t s o n l y ) c 7 i e c 6 i e c 5 i e c 4 i e c 3 i e c 2 i e c 1 i e c 0 i e g p i o _ i n t _ e n 3 ( r e g i s t e r 0 x 1 c ) g p i o i n t e r r u p t e n a b l e ( e n a b l e s i n t e r r u p t s f o r g p i n p u t s o n l y ) n / a n / a n / a n / a n / a n / a c 9 i e c 8 i e t a b l e 3 0 . k p _ g p i o x ? r e g i s t e r 0 x 1 d t o r e g i s t e r 0 x 1 f ( k e y p a d o r g p i o s e l e c t i o n ) r e g i s t e r n a m e r e g i s t e r d e s c r i p t i o n b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 k p _ g p i o 1 ( r e g i s t e r 0 x 1 d ) k e y p a d o r g p i o s e l e c t i o n 0 : g p i o 1 : k p m a t r i x r 7 r 6 r 5 r 4 r 3 r 2 r 1 r 0 k p _ g p i o 2 ( r e g i s t e r 0 x 1 e ) k e y p a d o r g p i o s e l e c t i o n 0 : g p i o 1 : k p m a t r i x c 7 c 6 c 5 c 4 c 3 c 2 c 1 c 0 k p _ g p i o 3 ( r e g i s t e r 0 x 1 f ) k e y p a d o r g p i o s e l e c t i o n 0 : g p i o 1 : k p m a t r i x n / a n / a n / a n / a n / a n / a c 9 c 8 t a b l e 3 1 . g p i _ e m _ r e g x ? r e g i s t e r 0 x 2 0 t o r e g i s t e r 0 x 2 2 ( g p i e v e n t m o d e 1 t o g p i e v e n t m o d e 3 ) r e g i s t e r n a m e r e g i s t e r d e s c r i p t i o n b i t 7 b i t 6 b i t b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 g p i _ e m _ r e g 1 ( r e g i s t e r 0 x 2 0 ) g p i e v e n t m o d e r e g i s t e r 1 0 : g p i n o t p a r t o f e v e n t f i f o 1 : g p i p a r t o f e v e n t f i f o ( r 0 t o r 7 ) r 7 _ e m r 6 _ e m r 5 _ e m r 4 _ e m r 3 _ e m r 2 _ e m r 1 _ e m r 0 _ e m g p i _ e m _ r e g 2 ( r e g i s t e r 0 x 2 1 ) g p i e v e n t m o d e r e g i s t e r 2 0 : g p i n o t p a r t o f e v e n t f i f o 1 : g p i p a r t o f e v e n t f i f o ( c 0 t o c 7 ) c 7 _ e m c 6 _ e m c 5 _ e m c 4 _ e m c 3 _ e m c 2 _ e m c 1 _ e m c 0 _ e m g p i _ e m _ r e g 3 ( r e g i s t e r 0 x 2 2 ) g p i e v e n t m o d e r e g i s t e r 3 0 : g p i n o t p a r t o f e v e n t f i f o 1 : g p i p a r t o f e v e n t f i f o ( c 8 t o c 9 ) n a n a n a n a n a n a c 9 _ e m c 8 _ e m
a d p 5 5 8 8 d a t a s h e e t r e v . c | p a g e 2 0 o f 2 8 t a b l e 3 2 . g p i o _ d i r x ? r e g i s t e r 0 x 2 3 t o r e g i s t e r 0 x 2 5 ( g p i o d a t a d i r e c t i o n ) r e g i s t e r n a m e r e g i s t e r d e s c r i p t i o n b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 g p i o _ d i r 1 ( r e g i s t e r 0 x 2 3 ) g p i o d a t a d i r e c t i o n 0 : g p i o 1 : o u t p u t r 7 d r 6 d r 5 d r 4 d r 3 d r 2 d r 1 d r 0 d g p i o _ d i r 2 ( r e g i s t e r 0 x 2 4 ) g p i o d a t a d i r e c t i o n 0 : g p i o 1 : o u t p u t c 7 d c 6 d c 5 d c 4 d c 3 d c 2 d c 1 d c 0 d g p i o _ d i r 3 ( r e g i s t e r 0 x 2 5 ) g p i o d a t a d i r e c t i o n 0 : g p i o 1 : o u t p u t n / a n / a n / a n / a n / a n / a c 9 d c 8 d t a b l e 3 3 . g p i o _ i n t _ l v l x ? r e g i s t e r 0 x 2 6 t o r e g i s t e r 0 x 2 8 ( g p i o e d g e / l e v e l d e t e c t ) r e g i s t e r n a m e r e g i s t e r d e s c r i p t i o n b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 g p i o _ i n t _ l v l 1 ( r e g i s t e r 0 x 2 6 ) g p i o i n t l e v e l d e t e c t 0 : l o w 1 : h i g h r 7 i l r 6 i l r 5 i l r 4 i l r 3 i l r 2 i l r 1 i l r 0 i l g p i o _ i n t _ l v l 2 ( r e g i s t e r 0 x 2 7 ) g p i o i n t l e v e l d e t e c t 0 : l o w 1 : h i g h c 7 i l c 6 i l c 5 i l c 4 i l c 3 i l c 2 i l c 1 i l c 0 i l g p i o _ i n t _ l v l 3 ( r e g i s t e r 0 x 2 8 ) g p i o i n t l e v e l d e t e c t 0 : l o w 1 : h i g h n / a n / a n / a n / a n / a n / a c 9 i l c 8 i l t a b l e 3 4 . d e b o u n c e _ d i s x ? r e g i s t e r 0 x 2 9 t o r e g i s t e r 0 x 2 b ( d e b o u n c e d i s a b l e ) r e g i s t e r n a m e r e g i s t e r d e s c r i p t i o n b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 d e b o u n c e _ d i s 1 ( r e g i s t e r 0 x 2 9 ) d e b o u n c e d i s a b l e ( i n p u t s ) 0 : e n a b l e d 1 : d i s a b l e d r 7 d d r 6 d d r 5 d d r 4 d d r 3 d d r 2 d d r 1 d d r 0 d d d e b o u n c e _ d i s 2 ( r e g i s t e r 0 x 2 a ) d e b o u n c e d i s a b l e ( i n p u t s ) 0 : e n a b l e d 1 : d i s a b l e d c 7 d d c 6 d d c 5 d d c 4 d d c 3 d d c 2 d d c 1 d d c 0 d d d e b o u n c e _ d i s 3 ( r e g i s t e r 0 x 2 b ) d e b o u n c e d i s a b l e ( i n p u t s ) 0 : e n a b l e d 1 : d i s a b l e d n / a n / a n / a n / a n / a n / a c 9 d d c 8 d d t a b l e 3 5 . g p i o _ p u l l x ? r e g i s t e r 0 x 2 c t o r e g i s t e r 0 x 2 e ( g p i o p u l l d i s a b l e ) r e g i s t e r n a m e r e g i s t e r d e s c r i p t i o n b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 g p i o _ p u l l 1 ( r e g i s t e r 0 x 2 c ) g p i o p u l l d i s a b l e ( r e m o v e p u l l - u p s f r o m i n p u t s ) 0 : p u l l e n a b l e d 1 : p u l l d i s a b l e d r 7 p d r 6 p d r 5 p d r 4 p d r 3 p d r 2 p d r 1 p d r 0 p d g p i o _ p u l l 2 ( r e g i s t e r 0 x 2 d ) g p i o p u l l d i s a b l e ( r e m o v e p u l l - u p s f r o m i n p u t s ) 0 : p u l l e n a b l e d 1 : p u l l d i s a b l e d c 7 p d c 6 p d c 5 p d c 4 p d c 3 p d c 2 p d c 1 p d c 0 p d g p i o _ p u l l 3 ( r e g i s t e r 0 x 2 e ) g p i o p u l l d i s a b l e ( r e m o v e p u l l - u p s f r o m i n p u t s ) 0 : p u l l e n a b l e d 1 : p u l l d i s a b l e d n / a n / a n / a n / a n / a n / a c 9 p d c 8 p d t a b l e 3 6 . r e g i s t e r 0 x 2 f f i e l d b i t d e s c r i p t i o n n o t u s e d n / a n o t u s e d
d a t a s h e e t a d p 5 5 8 8 r e v . c | p a g e 2 1 o f 2 8 c o m p a r a t o r r e g i s t e r d e s c r i p t i o n s t a b l e 3 7 . c m p _ c f g _ s t a t ? r e g i s t e r 0 x 3 0 ( c o m p a r a t o r c o n f i g u r a t i o n a n d s t a t u s r e g i s t e r ) f i e l d b i t d e s c r i p t i o n c m p 2 _ l 3 _ o u t 7 s e n s o r 2 c o m p a r a t o r l 3 o u t p u t . 0 : a m b i e n t l i g h t i s g r e a t e r t h a n l e v e l 3 ( d a r k ) . 1 : l 3 _ c m p h a s d e t e c t e d a c h a n g e i n a m b i e n t l i g h t f r o m l e v e l 2 ( o f f i c e ) t o l 3 ( d a r k ) . c m p 2 _ l 2 _ o u t 6 s e n s o r 2 c o m p a r a t o r l 2 o u t p u t . 0 : a m b i e n t l i g h t i s g r e a t e r t h a n l e v e l 2 ( o f f i c e ) . 1 : l 2 _ c m p h a s d e t e c t e d a c h a n g e i n a m b i e n t l i g h t f r o m l e v e l 1 ( o u t d o o r ) t o l 2 ( o f f i c e ) . c m p 1 _ l 3 _ o u t 5 s e n s o r 1 c o m p a r a t o r l 3 o u t p u t . 0 : a m b i e n t l i g h t i s g r e a t e r t h a n l e v e l 3 ( d a r k ) . 1 : l 3 _ c m p h a s d e t e c t e d a c h a n g e i n a m b i e n t l i g h t f r o m l e v e l 2 ( o f f i c e ) t o l 3 ( d a r k ) . c m p 1 _ l 2 _ o u t 4 s e n s o r 1 c o m p a r a t o r l 2 o u t p u t . 0 : a m b i e n t l i g h t i s g r e a t e r t h a n l e v e l 2 ( o f f i c e ) . 1 : l 2 _ c m p h a s d e t e c t e d a c h a n g e i n a m b i e n t l i g h t f r o m l e v e l 1 ( o u t d o o r ) t o l 2 ( o f f i c e ) . c m p 2 _ i e n 3 s e n s o r 2 c o m p a r a t o r i n t e r r u p t . 0 : i n t e r r u p t d i s a b l e d . 1 : i n t e r r u p t e n a b l e d . c m p 1 _ i e n 2 s e n s o r 1 c o m p a r a t o r i n t e r r u p t . 0 : i n t e r r u p t d i s a b l e d . 1 : i n t e r r u p t e n a b l e d . c m p 2 _ e n 1 s e n s o r 2 c o m p a r a t o r i n p u t . 0 : i n p u t d i s a b l e d . 1 : i n p u t e n a b l e d . c m p 1 _ e n 0 s e n s o r 1 c o m p a r a t o r i n p u t . 0 : i n p u t d i s a b l e d . 1 : i n p u t e n a b l e d . t a b l e 3 8 . c m p _ c o n f g _ s e n s 1 ? r e g i s t e r 0 x 3 1 ( s e n s o r 1 c o m p a r a t o r c o n f i g u r a t i o n r e g i s t e r ) f i e l d b i t d e s c r i p t i o n [ 7 : 6 ] n o t u s e d . f i l t ( 2 - 0 ) [ 5 : 3 ] p r o g r a m s t h e n u m b e r o f c o n s e c u t i v e m e a s u r e m e n t s r e q u i r e d t o t r a n s i t i o n t h e l 2 a n d l 3 l e v e l s . f i l t n u m b e r r e q u i r e d a p p r o x i m a t e t i m e ( s e c ) 0 0 0 1 0 . 0 8 0 0 1 2 0 . 1 6 0 1 0 4 0 . 3 2 0 1 1 8 0 . 6 4 1 0 0 1 6 1 . 2 8 1 0 1 3 2 2 . 5 6 1 1 0 6 4 5 . 1 2 1 1 1 1 2 8 1 0 . 2 4 f o r c e _ r d 2 1 : f o r c e s a r e a d o f t h e l i g h t s e n s o r ; r e s e t b y t h e i n t e r n a l s t a t e m a c h i n e a f t e r c o n v e r s i o n i s c o m p l e t e a n d l 2 _ o u t a n d l 3 _ o u t a r e v a l i d . 1 l 3 _ e n 1 1 : e n a b l e s t h e l 3 c o m p a r a t o r f o r s e n s o r 1 i n p u t . 0 : d i s a b l e s t h e l 3 c o m p a r a t o r f o r s e n s o r 1 i n p u t . l 2 _ e n 0 1 : e n a b l e s t h e l 2 c o m p a r a t o r f o r s e n s o r 1 i n p u t . 0 : d i s a b l e s t h e l 2 c o m p a r a t o r f o r s e n s o r 1 i n p u t . n o t e t h a t t h e l 3 c o m p a r a t o r h a s p r i o r i t y o v e r t h e l 2 c o m p a r a t o r . 1 w h e n t h e s o f t w a r e f o r c e s a c o n v e r s i o n , t h e s t a t e m a c h i n e c l e a r s t h e f o r c e d b i t a f t e r t h e c o n v e r s i o n i s d o n e a n d t h e p r o p e r r e g i s t e r s h a v e b e e n u p d a t e d .
a d p 5 5 8 8 d a t a s h e e t r e v . c | p a g e 2 2 o f 2 8 t a b l e 3 9 . c m p _ c o n f g _ s e n s 2 ? r e g i s t e r 0 x 3 2 ( s e n s o r 2 c o m p a r a t o r c o n f i g u r a t i o n r e g i s t e r ) f i e l d b i t d e s c r i p t i o n [ 7 : 6 ] n o t u s e d . f i l t ( 2 - 0 ) [ 5 : 3 ] p r o g r a m s t h e n u m b e r o f c o n s e c u t i v e m e a s u r e m e n t s r e q u i r e d t o t r a n s i t i o n t h e l 2 a n d l 3 l e v e l s . f i l t n u m b e r r e q u i r e d a p p r o x i m a t e t i m e ( s e c ) 0 0 0 1 0 . 0 8 0 0 1 2 0 . 1 6 0 1 0 4 0 . 3 2 0 1 1 8 0 . 6 4 1 0 0 1 6 1 . 2 8 1 0 1 3 2 2 . 5 6 1 1 0 6 4 5 . 1 2 1 1 1 1 2 8 1 0 . 2 4 f o r c e _ r d 2 1 : f o r c e s a r e a d o f t h e l i g h t s e n s o r ; r e s e t b y t h e i n t e r n a l s t a t e m a c h i n e a f t e r c o n v e r s i o n i s c o m p l e t e a n d l 2 _ o u t a n d l 3 _ o u t a r e v a l i d . 1 l 3 _ e n 1 1 : e n a b l e s t h e l 3 c o m p a r a t o r f o r s e n s o r 2 i n p u t . 0 : d i s a b l e s t h e l 3 c o m p a r a t o r f o r s e n s o r 2 i n p u t . l 2 _ e n 0 1 : e n a b l e s t h e l 3 c o m p a r a t o r f o r s e n s o r 2 i n p u t . 0 : d i s a b l e s t h e l 3 c o m p a r a t o r f o r s e n s o r 2 i n p u t . n o t e t h a t t h e l 3 c o m p a r a t o r h a s p r i o r i t y o v e r t h e l 2 c o m p a r a t o r . 1 w h e n t h e s o f t w a r e f o r c e s a c o n v e r s i o n , t h e s t a t e m a c h i n e c l e a r s t h e f o r c e d b i t a f t e r t h e c o n v e r s i o n i s c o m p l e t e a n d t h e p r o p e r r e g i s t e r s h a v e b e e n u p d a t e d . t a b l e 4 0 . c m p 1 _ l v l 2 _ t r i p ? r e g i s t e r 0 x 3 3 ( l 2 l i g h t s e n s o r r e f e r e n c e l e v e l ( o u t p u t f a l l i n g f o r s e n s o r 1 ) f i e l d b i t d e s c r i p t i o n l 2 _ t 7 t o l 2 _ t 0 [ 7 : 0 ] s e n s o r 1 c o m p a r a t o r l e v e l 2 ( o f f i c e ) r e f e r e n c e . i f t h e c o m p a r a t o r i n p u t i s b e l o w t h i s t r i p p o i n t , t h e c o m p a r a t o r t r i p s a n d e n t e r s l e v e l 2 ( o f f i c e ) m o d e a n d l 2 _ o u t i s s e t . t h e p r o g r a m m a b l e r a n g e i s f r o m 0  a t o 1 0 0 0  a ( 0 l u x t o 2 5 5 0 l u x ) i n s t e p s o f 4  a . t a b l e 4 1 . c m p 1 _ l v l 2 _ h y s ? r e g i s t e r 0 x 3 4 ( l 2 l i g h t s e n s o r h y s t e r e s i s ( a c t i v e w h e n o u t p u t r i s i n g ) f o r s e n s o r 1 ) f i e l d b i t d e s c r i p t i o n l 2 _ h 7 t o l 2 _ h 0 [ 7 : 0 ] s e n s o r 1 c o m p a r a t o r l e v e l 2 ( o f f i c e ) h y s t e r e s i s . i f t h e c o m p a r a t o r i n p u t i s a b o v e l 2 _ t r p + l 2 _ h y s , t h e c o m p a r a t o r t r i p s a n d e n t e r s l e v e l 1 ( o u t d o o r ) m o d e a n d l 2 _ o u t i s c l e a r e d . t h e p r o g r a m m a b l e r a n g e i s f r o m 0  a t o 1 0 0 0  a ( 0 l u x t o 2 5 5 0 l u x ) i n s t e p s o f 4  a . t a b l e 4 2 . c m p 1 _ l v l 3 _ t r i p ? r e g i s t e r 0 x 3 5 ( l 3 l i g h t s e n s o r r e f e r e n c e l e v e l ( o u t p u t f a l l i n g f o r s e n s o r 1 ) f i e l d b i t d e s c r i p t i o n l 3 _ t 7 t o l 3 _ t 0 [ 7 : 0 ] s e n s o r 1 c o m p a r a t o r l e v e l 3 ( d a r k ) r e f e r e n c e . i f t h e c o m p a r a t o r i n p u t i s b e l o w l 3 _ t r p , t h e c o m p a r a t o r t r i p s a n d e n t e r s l e v e l 3 ( d a r k ) m o d e a n d l 3 _ o u t i s s e t . t h e p r o g r a m m a b l e r a n g e i s f r o m 0  a t o 1 2 7 . 5  a ( 0 l u x t o 3 1 8 . 7 5 l u x ) i n s t e p s o f 0 . 5  a . t a b l e 4 3 . c m p 1 _ l v l 3 _ h y s ? r e g i s t e r 0 x 3 6 ( l 3 l i g h t s e n s o r h y s t e r e s i s ( a c t i v e w h e n o u t p u t r i s i n g ) f o r s e n s o r 1 ) f i e l d b i t d e s c r i p t i o n l 3 _ h [ 7 : 0 ] s e n s o r 1 c o m p a r a t o r l e v e l 3 ( d a r k ) h y s t e r e s i s . i f t h e c o m p a r a t o r i n p u t i s a b o v e l 3 _ t r p + l 3 _ h y s , t h e c o m p a r a t o r t r i p s a n d e n t e r s l e v e l 2 ( o f f i c e ) m o d e a n d l 3 _ o u t i s c l e a r e d . t h e p r o g r a m m a b l e r a n g e i s f r o m 0  a t o 1 2 7 . 5  a ( 0 l u x t o 3 1 8 . 7 5 l u x ) i n s t e p s o f 0 . 5  a .
d a t a s h e e t a d p 5 5 8 8 r e v . c | p a g e 2 3 o f 2 8 t a b l e 4 4 . c m p 2 _ l v l 2 _ t r i p ? r e g i s t e r 0 x 3 7 ( l 2 l i g h t s e n s o r r e f e r e n c e l e v e l ( o u t p u t f a l l i n g f o r s e n s o r 2 ) f i e l d b i t d e s c r i p t i o n l 2 _ t 7 t o l 2 _ t 0 [ 7 : 0 ] s e n s o r 2 c o m p a r a t o r l e v e l 2 ( o f f i c e ) r e f e r e n c e . i f t h e c o m p a r a t o r i n p u t i s b e l o w t h i s t r i p p o i n t , t h e c o m p a r a t o r t r i p s a n d e n t e r s l e v e l 2 ( o f f i c e ) m o d e a n d l 2 _ o u t i s s e t . t h e p r o g r a m m a b l e r a n g e i s f r o m 0  a t o 1 0 0 0  a ( 0 l u x t o 2 5 5 0 l u x ) i n s t e p s o f 4  a . t a b l e 4 5 . c m p 2 _ l v l 2 _ h y s ? r e g i s t e r 0 x 3 8 ( l 2 l i g h t s e n s o r h y s t e r e s i s ( a c t i v e w h e n o u t p u t r i s i n g ) f o r s e n s o r 2 ) f i e l d b i t d e s c r i p t i o n l 2 _ h 7 t o l 2 _ h 0 [ 7 : 0 ] s e n s o r 2 c o m p a r a t o r l e v e l 2 ( o f f i c e ) h y s t e r e s i s . i f t h e c o m p a r a t o r i n p u t i s a b o v e l 2 _ t r p + l 2 _ h y s , t h e c o m p a r a t o r t r i p s a n d e n t e r s l e v e l 1 ( o u t d o o r ) m o d e a n d l 2 _ o u t i s c l e a r e d . t h e p r o g r a m m a b l e r a n g e i s f r o m 0  a t o 1 0 0 0  a ( 0 l u x t o 2 5 5 0 l u x ) i n s t e p s o f 4  a . t a b l e 4 6 . c m p 2 _ l v l 3 _ t r i p ? r e g i s t e r 0 x 3 9 ( l 3 l i g h t s e n s o r r e f e r e n c e l e v e l ( o u t p u t f a l l i n g f o r s e n s o r 2 ) f i e l d b i t d e s c r i p t i o n l 3 _ t 7 t o l 3 _ t 0 [ 7 : 0 ] s e n s o r 2 c o m p a r a t o r l e v e l 3 ( d a r k ) r e f e r e n c e . i f t h e c o m p a r a t o r i n p u t i s b e l o w l 3 _ t r p , t h e c o m p a r a t o r t r i p s a n d e n t e r s l e v e l 3 ( d a r k ) m o d e a n d l 3 _ o u t i s s e t . t h e p r o g r a m m a b l e r a n g e i s f r o m 0  a t o 1 2 7 . 5  a ( 0 l u x t o 3 1 8 . 7 5 l u x ) i n s t e p s o f 0 . 5  a . t a b l e 4 7 . c m p 2 _ l v l 3 _ h y s ? r e g i s t e r 0 x 3 a ( l 3 l i g h t s e n s o r h y s t e r e s i s ( a c t i v e w h e n o u t p u t r i s i n g ) f o r s e n s o r 2 ) f i e l d b i t d e s c r i p t i o n l 3 _ h [ 7 : 0 ] s e n s o r 2 c o m p a r a t o r l e v e l 3 ( d a r k ) h y s t e r e s i s . i f t h e c o m p a r a t o r i n p u t i s a b o v e l 3 _ t r p + l 3 _ h y s , t h e c o m p a r a t o r t r i p s a n d e n t e r s l e v e l 2 ( o f f i c e ) m o d e a n d l 3 _ o u t i s c l e a r e d . t h e p r o g r a m m a b l e r a n g e i s f r o m 0  a t o 1 2 7 . 5  a ( 0 l u x t o 3 1 8 . 7 5 l u x ) i n s t e p s o f - . 5  a . t a b l e 4 8 . c m p 1 _ a d c _ d a t _ r 1 ? r e g i s t e r 0 x 3 b ( c o m p a r a t o r 1 a d c d a t a r e g i s t e r 1 ) r e g i s t e r n a m e r e g i s t e r d e s c r i p t i o n b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 c m p 1 _ a d c _ d a t c o m p a r a t o r a d c d a t a r e g i s t e r , b i t s [ 7 : 0 ] n a n a n a a d c 1 2 a d c 1 1 a d c 1 0 a d c 9 a d c 8 t a b l e 4 9 . c m p 1 _ a d c _ d a t _ r 2 ? r e g i s t e r 0 x 3 c ( c o m p a r a t o r 1 a d c d a t a r e g i s t e r 2 ) 1 r e g i s t e r n a m e r e g i s t e r d e s c r i p t i o n b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 c m p 1 _ a d c _ d a t c o m p a r a t o r a d c d a t a r e g i s t e r , b i t s [ 7 : 0 ] a d c 7 a d c 6 a d c 5 a d c 4 a d c 3 a d c 2 a d c 1 a d c 0 1 r e a d - o n l y r e g i s t e r ; c o n t a i n s t h e m o s t c u r r e n t 1 3 - b i t a d c d a t a o f t h e c o m p a r a t o r f o r s e n s o r 1 . t a b l e 5 0 . c m p 2 _ a d c _ d a t _ r 1 ? r e g i s t e r 0 x 3 d ( c o m p a r a t o r 2 a d c d a t a r e g i s t e r 1 ) r e g i s t e r n a m e r e g i s t e r d e s c r i p t i o n b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 c m p 1 _ a d c _ d a t c o m p a r a t o r a d c d a t a r e g i s t e r [ 7 : 0 ] n / a n / a a d c 1 2 a d c 1 1 a d c 1 0 a d c 9 a d c 8 t a b l e 5 1 . c m p 2 _ a d c _ d a t _ r 2 ? r e g i s t e r 0 x 3 e ( c o m p a r a t o r 2 a d c d a t a r e g i s t e r 2 ) 1 r e g i s t e r n a m e r e g i s t e r d e s c r i p t i o n b i t 7 b i t 6 b i t 5 b i t 4 b i t 3 b i t 2 b i t 1 b i t 0 c m p 1 _ a d c _ d a t c o m p a r a t o r a d c d a t a r e g i s t e r , b i t s [ 7 : 0 ] a d c 7 a d c 6 a d c 5 a d c a d c 3 a d c 2 a d c 1 a d c 0 1 r e a d - o n l y r e g i s t e r ; c o n t a i n s t h e m o s t c u r r e n t 1 3 - b i t a d c d a t a o f t h e c o m p a r a t o r f o r s e n s o r 2 .
a d p 5 5 8 8 d a t a s h e e t r e v . c | p a g e 2 4 o f 2 8 a p p l i c a t i o n s i n f o r m a t i o n c o n t r o l r e g i s t e r s h o s t p r o c e s s o r c o n t r o l i n t e r f a c e r e f v o l t a g e c 9 c 9 c 8 c 8 r 7 r 6 r 5 r 4 r 3 r 2 r 1 r 0 c 0 c 1 c 2 c 3 c 4 c 5 c 6 c 7 c 9 c 8 e n a b l e 2 ( g p o ) b a c k l i g h t e n a b l e ( g p o ) a 0 a 1 a 2 a 3 a 4 a 5 a 6 a 7 b 0 b 1 b 2 b 3 b 4 b 5 b 6 b 7 c 0 c 1 c 2 c 3 c 4 c 5 c 6 c 7 d 0 d 1 d 2 d 3 d 4 d 5 d 6 d 7 e 0 e 1 e 2 e 3 e 4 e 5 e 6 e 7 f 0 f 1 f 2 f 3 f 4 f 5 f 6 f 7 g 0 g 1 g 2 g 3 g 4 g 5 g 6 g 7 h 0 h 1 h 2 h 3 h 4 h 5 h 6 h 7 i 0 i 1 i 2 i 3 i 4 i 5 i 6 i 7 j 0 j 1 j 2 j 3 j 4 j 5 j 6 j 7 s c l s d a v c c g n d v c c s c l g p l 1 g p l 2 s d a r s t i n t 1 9 2 1 2 3 2 2 1 8 1 7 2 0 2 4 1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 r e f v o l t a g e 0 . 1 f 0 . 1 f v c c v c c 0 7 6 7 3 - 0 2 2 b a c k l i g h t d r i v e r p w m o u t p u t a d p 5 5 8 8 v c c r s t i n t f i g u r e 1 7 . a d p 5 5 8 8 d e t a i l e d a p p l i c a t i o n b l o c k d i a g r a m a p p l i c a t i o n s o v e r v i e w t h e a d p 5 5 8 8 i s d e s i g n e d t o c o m p l e m e n t h o s t p r o c e s s o r s i n a v a r i e t y o f w a y s . i t s v e r s a t i l i t y m a k e s i t t h e i d e a l s o l u t i o n f o r m o b i l e p l a t f o r m s t h a t r e q u i r e e x t e n d e d k e y p a d s a n d g p i o e x p a n d e r s . t h e p r o g r a m m a b l e r e g i s t e r s g i v e t h e d e s i g n e r t h e f l e x i b i l i t y t o c o n f i g u r e a n y o r a l l i t s g p i o s i n a v a r i e t y o f w a y s . f i g u r e 1 7 s h o w s a d e t a i l e d a p p l i c a t i o n d i a g r a m . k e y p a d c u r r e n t k e y p a d c u r r e n t d r a i n v a r i e s b a s e d o n h o w m a n y k e y s a n d h o w m a n y r o w s a n d c o l u m n s a r e p r e s s e d d u r i n g m u l t i p l e k e y p r e s s e s . t a b l e 5 2 s h o w s t y p i c a l c u r r e n t d r a i n f o r a s i n g l e p r e s s a n d f o r t w o k e y p r e s s e s . t a b l e 5 2 . t y p i c a l c u r r e n t d r a i n k e y p r e s s e s c o n d i t i o n s 1 t y p i c a l u n i t 1 v c c = 1 . 8 v t o 3 . 0 v 5 5  a 2 v c c = 1 . 8 v t o 3 . 0 v 1 0 0  a 1 t a = t j =  4 0 c t o + 8 5 c . b a c k l i g h t c o n t r o l a p p l i c a t i o n a l t h o u g h t h e a d p 5 5 8 8 i s n o t d e s i g n e d w i t h a b a c k l i g h t d r i v e r , t h e b u i l t - i n l i g h t s e n s o r c o m p a r a t o r i n p u t s , w i t h p r o g r a m m a b l e r e g i s t e r s a n d t r i p p o i n t s , g i v e t h e b a c k l i g h t d e s i g n e r a l l t h e n e c e s s a r y t o o l s t o c o n t r o l t h e b a c k l i g h t b a s e d o n l i g h t i n g c o n - d i t i o n s o r e n v i r o n m e n t . w i t h a f e w i 2 c c o m m a n d s , t h e d e s i g n e r c a n p r o g r a m t h e d e v i c e t o m o n i t o r l i g h t i n g c o n d i t i o n s a n d t r i g g e r a n i n t e r r u p t b a s e d o n p r e s e t t r i p p o i n t s . o n c e p r o g r a m - m e d , t h e s t a t e m a c h i n e u s e s t h e s e t r i p p o i n t s a n d h y s t e r e s i s v a l u e s t o a l e r t t h e m i c r o p r o c e s s o r o f a n y c h a n g e i n l i g h t i n g c o n d i t i o n s . i n a d d i t i o n t o t h e l 2 _ o u t a n d l 3 _ o u t b i t s , f o u r a d d i t i o n a l r e g i s t e r s ( r e g i s t e r 0 x 3 b t h r o u g h r e g i s t e r 0 x 3 e , t w o r e g i s t e r s p e r l i g h t s e n s o r ) p r o v i d e d e t a i l e d a c c o u n t s o f t h e i n t e r n a l a d c d u e t o l i g h t c o n d i t i o n c h a n g e s . t h e a d c h a s a f u l l - s c a l e c u r r e n t o f 1 0 0 0  a a n d a d y n a m i c r a n g e o f 8 0 0 0 , w h i c h t r a n s l a t e s t o 0 . 1 2 5  a o r 0 . 3 1 2 5 l u x p e r s t e p . t h e s e t w o c o r r e s p o n d i n g r e g i s t e r s p e r s e n s o r f o r m a 1 3 - b i t r e g i s t e r t h a t c a n b e r e a d t o p r o v i d e d e t a i l e d t r a n s l a t i o n o f t h e l i g h t s e n s o r i n p u t a t a n y i n s t a n t .
d a t a s h e e t a d p 5 5 8 8 r e v . c | p a g e 2 5 o f 2 8 h o s t p r o c e s s o r b a c k l i g h t d r i v e r p w m b a c k l i g h t e x p a n d e d g p i o s k e y p a d m a t r i x b a c k l i g h t e n a b l e a d p 5 5 8 8 a 0 a 1 a 2 a 3 a 4 a 5 a 6 a 7 b 0 b 1 b 2 b 3 b 4 b 5 b 6 b 7 c 0 c 1 c 2 c 3 c 4 c 5 c 6 c 7 d 0 d 1 d 2 d 3 d 4 d 5 d 6 d 7 e 0 e 1 e 2 e 3 e 4 e 5 e 6 e 7 f 0 f 1 f 2 f 3 f 4 f 5 f 6 f 7 g 0 g 1 g 2 g 3 g 4 g 5 g 6 g 7 h 0 h 1 h 2 h 3 h 4 h 5 h 6 h 7 i 0 i 1 i 2 i 3 i 4 i 5 i 6 i 7 j 0 j 1 j 2 j 3 j 4 j 5 j 6 j 7 v c c l i g h t s e n s o r s i 2 c r s t i n t 0 7 6 7 3 - 0 2 3 f i g u r e 1 8 . i n t e g r a t i o n b l o c k d i a g r a m
a d p 5 5 8 8 d a t a s h e e t r e v . c | p a g e 2 6 o f 2 8 o u t l i n e d i m e n s i o n s 0 . 5 0 b s c 0 . 5 0 0 . 4 0 0 . 3 0 0 . 3 0 0 . 2 5 0 . 2 0 c o m p l i a n t t o j e d e c s t a n d a r d s m o - 2 2 0 - w g g d - 8 . 0 7 2 8 0 9 a b o t t o m v i e w t o p v i e w e x p o s e d p a d p i n 1 i n d i c a t o r 4 . 1 0 4 . 0 0 s q 3 . 9 0 s e a t i n g p l a n e 0 . 8 0 0 . 7 5 0 . 7 0 0 . 0 5 m a x 0 . 0 2 n o m 0 . 2 0 r e f 0 . 2 5 m i n c o p l a n a r i t y 0 . 0 8 p i n 1 i n d i c a t o r 1 2 4 7 1 2 1 3 1 8 1 9 6 f o r p r o p e r c o n n e c t i o n o f t h e e x p o s e d p a d , r e f e r t o t h e p i n c o n f i g u r a t i o n a n d f u n c t i o n d e s c r i p t i o n s s e c t i o n o f t h i s d a t a s h e e t . 2 . 2 0 2 . 1 0 s q 2 . 0 0 f i g u r e 1 9 . 2 4 - l e a d l e a d f r a m e c h i p s c a l e p a c k a g e [ l f c s p _ w q ] 4 m m 4 m m b o d y , v e r y v e r y t h i n q u a d ( c p - 2 4 - 1 0 ) d i m e n s i o n s s h o w n i n m i l l i m e t e r s o r d e r i n g g u i d e m o d e l 1 t e m p e r a t u r e r a n g e p a c k a g e d e s c r i p t i o n p a c k a g e o p t i o n a d p 5 5 8 8 a c p z - r 7  4 0 c t o + 8 5 c 2 4 - l e a d l e a d f r a m e c h i p s c a l e p a c k a g e [ l f c s p _ w q ] c p - 2 4 - 1 0 a d p 5 5 8 8 - e v a l z e v a l u a t i o n b o a r d 1 z = r o h s c o m p l i a n t p a r t .
d a t a s h e e t a d p 5 5 8 8 r e v . c | p a g e 2 7 o f 2 8 n o t e s
a d p 5 5 8 8 d a t a s h e e t r e v . c | p a g e 2 8 o f 2 8 n o t e s ? 2 0 0 8 ? 2 0 1 2 a n a l o g d e v i c e s , i n c . a l l r i g h t s r e s e r v e d . t r a d e m a r k s a n d r e g i s t e r e d t r a d e m a r k s a r e t h e p r o p e r t y o f t h e i r r e s p e c t i v e o w n e r s . d 0 7 6 7 3 - 0 - 2 / 1 2 ( c )


▲Up To Search▲   

 
Price & Availability of ADP5588

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X